We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 752283e + a48a8c3 commit 435e499Copy full SHA for 435e499
src/uiSelectDirective.js
@@ -270,7 +270,7 @@ uis.directive('uiSelect',
270
var offsetDropdown = uisOffset(dropdown);
271
272
// Determine if the direction of the dropdown needs to be changed.
273
- if (offset.top + offset.height + offsetDropdown.height > $document[0].documentElement.scrollTop + $document[0].documentElement.clientHeight) {
+ if (offset.top + offset.height + offsetDropdown.height > $document.find('body')[0].scrollTop + $document[0].documentElement.clientHeight) {
274
dropdown[0].style.position = 'absolute';
275
dropdown[0].style.top = (offsetDropdown.height * -1) + 'px';
276
element.addClass(directionUpClassName);
0 commit comments