Design of pull down select broken on mobile
🐜 Bug report
🔧
about: Short explanation The pull down select on the monitoring setup page looks broken on mobile
- The listbox is visible above the textbox even before it's clicked
- The listbox appears above the textbox, even though there's not enough space
I'm seeing this behaviour on
-
iOS device -
Android device -
Chrome -
Firefox -
Safari -
Edge -
Other
What is the expected behaviour?
- Before the textbox is clicked, the listbox should not be visible
- The listbox should only render above the textbox if there is enough space above
- Scrolling on mobile causes the dropdown to close
What is the actual behaviour?
Steps to Reproduce
Example:
- Open the app
- Go to the monitoring setup
Screenshots
Files
pull-down-select.component.ts
Any possible solutions?
- Set the height of the listbox also to 0px when it's collapsed
- Currently we're calculating the height below the textbox, to see if we should render the listbox above. We should also calculate the height above the textbox, to see if we're able to show it there. If there's neither enough space above or below, we should default to showing it below.
- If the former is not possible, a quick fix would just be to remove the logic to show the listbox above the dropdown altogether
Edited by James Jenkinson