Browse Source

#5366, #5975 - Fixes issue with offset not available on window

pull/5603/merge
Jack 6 years ago
parent
commit
18ac909518
1 changed files with 6 additions and 2 deletions
  1. 8
      src/definitions/modules/dropdown.js

8
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()
},

Loading…
Cancel
Save