diff --git a/src/definitions/modules/dropdown.js b/src/definitions/modules/dropdown.js index a37438001c..efecda13ad 100644 --- a/src/definitions/modules/dropdown.js +++ b/src/definitions/modules/dropdown.js @@ -3216,7 +3216,9 @@ $.fn.dropdown = function(parameters) { ; calculations = { context: { - offset : $context.offset(), + offset : ($context.get(0) === window) + ? { top: 0, left: 0} + : $context.offset(), scrollTop : $context.scrollTop(), height : $context.outerHeight() }, @@ -3259,7 +3261,9 @@ $.fn.dropdown = function(parameters) { ; calculations = { context: { - offset : $context.offset(), + offset : ($context.get(0) === window) + ? { top: 0, left: 0} + : $context.offset(), scrollLeft : $context.scrollLeft(), width : $context.outerWidth() },