-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Dropdown should open UP instead of DOWN, when there is not enough space to render fully #148
Comments
@slavinskas can explain a little more about this? maybe a picture if its something graphical that you refer to |
@dimirc similar to when you open a context window in chrome with right click. The direction it builds from the location of your mouse differs based on the draw height and the amount of space to the edge of the screen. If you do not have any space on a screen or the select is at the bottom of the page it should draw the elements up instead of down. is my understanding correct @slavinskas ? |
@zackarychapple yes, it's exactly what I meant. |
I would like to expand on the requirement to also offset right and left as a stretch goal. |
+1 for this feature, how far is the implementation? |
+1 On Thursday, October 2, 2014, Gregor Swatek [email protected]
|
+1 on this, this is an extremely helpful feature. |
+1 |
2 similar comments
+1 |
+1 |
+1 Any progress? |
+1 |
1 similar comment
+1 |
+1 - I would enjoy being able to also force it to render upwards always, if possible. |
+1 |
3 similar comments
+1 |
+1 |
+1 |
Might want to update the milestone here if this hasn't been addressed yet. |
do want |
I've created a PR with code that adds an up direction depending on how much vertical space is left for rendering. This works well for my local build. Feel free to try it out on your own builds and upvote the PR if it works for you! |
👍 |
👍 Just a simple question: As this issue is 9 months old, should I
? Thanks! |
Issue #148 - Add up direction to dropdown rendering.
Merged! Thanks again @JeromeLam (and @brianfeister ) 😉 |
@JeromeLam, hi offset.top + offset.height + offsetDropdown.height > $document[0].documentElement.scrollTop + $document[0].documentElement.clientHeight should be replaced with offset.top + offset.height + offsetDropdown.height > $document[0].documentElement.scrollTop + $document[0].body.scrollTop + $document[0].documentElement.clientHeight |
Same issue as @SerjoPepper -- and btw thanks for commenting the issue |
Looks like if you use ui-select inside directives, on Chrome browsers the dropdown always goes up instead of dropping down. |
@kwantopia I'm having the same issue |
Is there any option/setting to disable this feature? |
same question than @danduh : Is there any option/setting to disable this feature? |
Seeing the same issue as @kwantopia in Chrome, doing my head in. Any suggested fix? |
Would love the ability to force it to always open down. Currently it's opening up no matter what I do. |
@hyrumwhite +1 |
Same issue here, inside a modal, it always opens up and goes slightly out of the window. Would like to force 'direction-down'. |
+1 |
with @hyrumwhite and @calwi , please add the ability to force 'direction-down' |
@hyrumwhite +1 |
with @hyrumwhite and @calwi and @pgeez I also want to force either direction-down or direction-up. |
I also really need the option to force "direction-down". |
Related to #1212 |
Just for anyone who found this issue looking for a way to force dropdowns to go down, this is now possible with #1213 yourApp.config(function(uiSelectConfig) {
uiSelectConfig.dropdownPosition = 'down';
}) |
@alexpeattie 👍 thanks |
@alexanderchan Thanks. I had to use this option to force the choice element to bottom because ui-select currently does not provide scrolling capability for ui-select-multiple. If user enters tons of items, and ui-select-match element becomes too tall to be shown without scrolling the page, choice element could be displayed off-view (at the top of the match element). It will be nice if there is a native way to set the maximum height for ui-select-match element.. |
select2 dropdown position want to down only display |
When there is not enough space for dropdown to render fully, it should be rendered to the top of the element, as it is default behaviour for select2.
The text was updated successfully, but these errors were encountered: