Skip to content

Conversation

@maxceem
Copy link
Collaborator

@maxceem maxceem commented Dec 22, 2017

Issue #1497 - Dropdown menu doesn't take viewport bounds into consideration.

Quick solution: always dropdown “upside” if click in the bottom half of the window.

…nds into consideration.

Quick solution always dropdown “upside” if click in the bottom half of the window.
@vic-georgiev vic-georgiev merged commit a9b8b6c into topcoder-archive:dev Dec 22, 2017

const hocStatusDropdown = (CompositeComponent) => {
class StatusDropdown extends Component {
shouldDropdownUp() {

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@maxceem I know it is late as changes are already merged. However, is it possible to move this logic, of showing dropdown up or down, can be moved to the generic dropdown component or its HOC? That way all dropdowns would get benefit from it.
fyi @vic-topcoder

@maxceem
Copy link
Collaborator Author

maxceem commented Dec 23, 2017 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants