fix: Ensure menus are always kept on the screen (#1036)

* ensuring dropdowns fit on the screen

* refactoring

* fix flow types

* no longer fixing the elements which should resolve scrolling issues

* fix menus that should be fixed

* styled-components syntax was wrong

* account for fixed dropdowns when handling overflowing menus

* Update app/components/DropdownMenu/DropdownMenu.js

Co-Authored-By: Tom Moor <tom.moor@gmail.com>
This commit is contained in:
Mateusz Sapielak
2019-10-13 04:21:48 +01:00
committed by Tom Moor
parent 00d5b58850
commit 8ea1323a7c
4 changed files with 92 additions and 20 deletions

View File

@@ -83,7 +83,7 @@ const SearchFilter = props => {
{props.label}
</StyledButton>
}
position="left"
position="right"
>
{({ closePortal }) => (
<MaxHeightScrollable>