diff options
author | Manuel Sailer <github.com@manuel-sailer.de> | 2023-04-18 12:15:57 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-04-18 12:15:57 +0200 |
commit | 02b517bf85577e0b7831ce6b09de87a58b531932 (patch) | |
tree | b3246dbd92c4f675eee4625b2e86e38ba630a836 /js | |
parent | 6691d45c5684bd9acb9a9ce0f8d8d53882492ee3 (diff) |
Fix audio player floating when scrolling (#2142) (#2206)
Signed-off-by: ManuelSailer <github.com@manuel-sailer.de>
Signed-off-by: Manuel Sailer <github.com@manuel-sailer.de>
Diffstat (limited to 'js')
-rw-r--r-- | js/directive/NewsStickyMenu.js | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/js/directive/NewsStickyMenu.js b/js/directive/NewsStickyMenu.js index b46500577..7da681214 100644 --- a/js/directive/NewsStickyMenu.js +++ b/js/directive/NewsStickyMenu.js @@ -7,7 +7,7 @@ * @author Bernhard Posselt <dev@bernhard-posselt.com> * @copyright Bernhard Posselt 2014 */ -app.directive('newsStickyMenu', function () { +app.directive('newsStickyMenu', function (NC_MAJOR_VERSION) { 'use strict'; return function (scope, elem, attr) { @@ -18,7 +18,9 @@ app.directive('newsStickyMenu', function () { if (scrollHeight > height) { elem.addClass('fixed'); - elem.css('top', scrollHeight); + if (NC_MAJOR_VERSION < 25) { + elem.css('top', scrollHeight); + } } else { elem.removeClass('fixed'); } |