Browse Source

Merge pull request #2710 from lauri-elevant/fluid-sticky-fix

Sticky position fix for fluid menus
pull/2795/merge
Jack Lukic 9 years ago
parent
commit
e125ddb565
1 changed files with 3 additions and 7 deletions
  1. 10
      src/definitions/modules/sticky.js

10
src/definitions/modules/sticky.js

@ -390,12 +390,8 @@ $.fn.sticky = function(parameters) {
},
size: function() {
if(module.cache.element.height !== 0 && module.cache.element.width !== 0) {
$module
.css({
width : module.cache.element.width,
height : module.cache.element.height
})
;
$module.get(0).style.setProperty('width', module.cache.element.width + 'px', 'important');
$module.get(0).style.setProperty('height', module.cache.element.height + 'px', 'important');
}
}
},
@ -882,4 +878,4 @@ $.fn.sticky.settings = {
};
})( jQuery, window , document );
})( jQuery, window , document );
Loading…
Cancel
Save