Skip to content
This repository has been archived by the owner on Sep 5, 2024. It is now read-only.

Commit

Permalink
fix(select): stop position from going past bottom of screen
Browse files Browse the repository at this point in the history
closes #1611
  • Loading branch information
rschmukler committed Feb 24, 2015
1 parent 5a2b014 commit 805ed1b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/components/select/select.js
Original file line number Diff line number Diff line change
Expand Up @@ -653,7 +653,9 @@ function SelectProvider($$interimElementProvider) {
},
spaceAvailable = {
top: targetRect.top - bounds.top,
left: targetRect.left - bounds.bottom
left: targetRect.left - bounds.left,
right: bounds.right - (targetRect.left + targetRect.width),
bottom: bounds.bottom - (targetRect.top + targetRect.height)
},
maxWidth = parentRect.width - SELECT_EDGE_MARGIN * 2,
isScrollable = contentNode.scrollHeight > contentNode.offsetHeight,
Expand Down

0 comments on commit 805ed1b

Please sign in to comment.