Browse Source

#1724 Minor fixes

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

4
src/definitions/modules/dropdown.js

@ -2256,11 +2256,10 @@ $.fn.dropdown = function(parameters) {
onScreen
;
$currentMenu.addClass(className.loading);
onScreen = ($.fn.visibility !== undefined)
onScreen = (false && $.fn.visibility !== undefined)
? $currentMenu.visibility('bottom visible')
: $('body').scrollTop() + $(window).height() >= $currentMenu.offset().top + $currentMenu.height()
;
console.log(onScreen, $currentMenu);
module.debug('Checking if menu can fit on screen', onScreen, $menu);
$currentMenu.removeClass(className.loading);
return onScreen;
@ -2423,6 +2422,7 @@ $.fn.dropdown = function(parameters) {
queue : true,
onStart : start,
onComplete : function() {
module.remove.upward($subMenu);
callback.call(element);
}
})

Loading…
Cancel
Save