diff options
Diffstat (limited to 'js/directive/NewsStickyMenu.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'); } |