Skip to content
This repository has been archived by the owner on Dec 8, 2022. It is now read-only.

Dropdown fills screen when it intersects with window side #777

Closed
ghost opened this issue Jun 9, 2017 · 2 comments
Closed

Dropdown fills screen when it intersects with window side #777

ghost opened this issue Jun 9, 2017 · 2 comments
Assignees

Comments

@ghost
Copy link

ghost commented Jun 9, 2017

Expected behavior

Dropdown doesn't fill screen when it intersects with the side of the window.

Actual behavior

Dropdown does fill entire screen when it intersects with the side of the window.

Steps to reproduce

Resize window so right side would intersect with dropdown. Hit dropdown button. Dropdown fills entire screen.

Plunker

https://plnkr.co/edit/Crxx3Eh0W24rkhWvMzof?p=preview
You must resize the preview to replicate.
screen shot 2017-06-09 at 1 26 26 pm

The size needed to replicate this in the plunkr is not plausible, but we are seeing this on the sort dropdown on a tile on the right side. When the window is small enough such that the dropdown touches the right side of the screen, the behavior happens.

dropdownbug

Original movie here: dropdownbug.zip Feel free to contact me if you want the non zipped movie.

@Blackbaud-PatrickOFriel
Copy link
Contributor

Yeah the solution for this will just be to do smarter positioning for dropdowns like how datepicker works. Filling the entire screen is how drpodowns are supposed to work if there's not enough room, but in that case, it should just open to the left instead.

@Blackbaud-PatrickOFriel
Copy link
Contributor

In 2.0.0-beta.31

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant