Browse Source

#1724 Remove debug, fix scrollTop

pull/2300/head
jlukic 9 years ago
parent
commit
4e73329cff
1 changed files with 1 additions and 1 deletions
  1. 2
      src/definitions/modules/dropdown.js

2
src/definitions/modules/dropdown.js

@ -2258,7 +2258,7 @@ $.fn.dropdown = function(parameters) {
$currentMenu.addClass(className.loading);
onScreen = (false && $.fn.visibility !== undefined)
? $currentMenu.visibility('bottom visible')
: $('body').scrollTop() + $(window).height() >= $currentMenu.offset().top + $currentMenu.height()
: $(window).scrollTop() + $(window).height() >= $currentMenu.offset().top + $currentMenu.height()
;
module.debug('Checking if menu can fit on screen', onScreen, $menu);
$currentMenu.removeClass(className.loading);

Loading…
Cancel
Save