From 4e73329cfffc0b1baa9ce953981decb64a008a75 Mon Sep 17 00:00:00 2001 From: jlukic Date: Mon, 11 May 2015 16:14:00 -0400 Subject: [PATCH] #1724 Remove debug, fix scrollTop --- src/definitions/modules/dropdown.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/definitions/modules/dropdown.js b/src/definitions/modules/dropdown.js index e691a11e5..48ca1e888 100644 --- a/src/definitions/modules/dropdown.js +++ b/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);