summaryrefslogtreecommitdiffstats
path: root/js
diff options
context:
space:
mode:
authorManuel Sailer <github.com@manuel-sailer.de>2023-04-18 12:15:57 +0200
committerGitHub <noreply@github.com>2023-04-18 12:15:57 +0200
commit02b517bf85577e0b7831ce6b09de87a58b531932 (patch)
treeb3246dbd92c4f675eee4625b2e86e38ba630a836 /js
parent6691d45c5684bd9acb9a9ce0f8d8d53882492ee3 (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.js6
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');
}