From d3c192803347c1e631b31f874390f5b29c4b7866 Mon Sep 17 00:00:00 2001 From: jlukic Date: Mon, 11 May 2015 15:09:04 -0400 Subject: [PATCH] #1724 Minor fixes --- src/definitions/modules/dropdown.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/definitions/modules/dropdown.js b/src/definitions/modules/dropdown.js index 050a619bf..e691a11e5 100644 --- a/src/definitions/modules/dropdown.js +++ b/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); } })