Skip to content
This repository was archived by the owner on Oct 2, 2019. It is now read-only.

Commit 4bb068b

Browse files
committed
fixed direction-up for webkit
1 parent bc3de20 commit 4bb068b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/uiSelectDirective.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -273,7 +273,7 @@ uis.directive('uiSelect',
273273
var offsetDropdown = uisOffset(dropdown);
274274

275275
// Determine if the direction of the dropdown needs to be changed.
276-
if (offset.top + offset.height + offsetDropdown.height > $document[0].documentElement.scrollTop + $document[0].documentElement.clientHeight) {
276+
if (offset.top + offset.height + offsetDropdown.height > $document.scrollTop() + $document[0].documentElement.clientHeight) {
277277
dropdown[0].style.position = 'absolute';
278278
dropdown[0].style.top = (offsetDropdown.height * -1) + 'px';
279279
element.addClass(directionUpClassName);

0 commit comments

Comments
 (0)