Browse Source

Sticky component does not set height when already same height

pull/1785/head
jlukic 10 years ago
parent
commit
b4338c702e
1 changed files with 3 additions and 1 deletions
  1. 4
      src/definitions/modules/sticky.js

4
src/definitions/modules/sticky.js

@ -309,7 +309,9 @@ $.fn.sticky = function(parameters) {
}
else {
module.debug('Settings container size', module.cache.context.height);
$container.height(module.cache.context.height);
if( Math.abs($container.height() - module.cache.context.height) > 5) {
$container.height(module.cache.context.height);
}
}
},
scroll: function(scroll) {

Loading…
Cancel
Save