This repository was archived by the owner on Oct 2, 2019. It is now read-only.
This repository was archived by the owner on Oct 2, 2019. It is now read-only.
Dropdown direction issue on webkit #1016
Closed
Description
The problem is on this line (in uiselect directive), on Chrome (43) $document[0].documentElement.scrollTop
return 0
else if (offset.top + offset.height + offsetDropdown.height > $document[0].documentElement.scrollTop + $document[0].documentElement.clientHeight)
It works if i replace by
else if (offset.top + offset.height + offsetDropdown.height > $document[0].body.scrollTop + $document[0].documentElement.clientHeight)
But it doesn't work anymore on Firefox now...
Anyone have this problem ?
EDIT :
window.pageYOffset
work on both
Thank you
Metadata
Metadata
Assignees
Labels
No labels