Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Determine auto dropdown position by half of the screen height #264

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

rockychan
Copy link

Issue:
The bottom space is small to show a reasonable size of dropdown when dropdownPosition is auto and it shows at bottom after calculation. Because of bottom space of value 100 and 150 (search = true) are determined as enough to show the dropdown in bottom.

Solution:
Determine bottom space by half of the device height

@qaezrun
Copy link

qaezrun commented May 3, 2024

Sorry not really related to your matter @rockychan, i just want to know if you have any idea about my problem. dropdown position auto works fine when you focus on input search and your dropdown is near bottom which might get covered by the keyboard it automatically goes up right above the keyboard. the problem is how about when dropdown is just right above the keyboard and does not trigger the setting of position to top? dropdown gets covered by the keyboard.

i have multiple dropdown inside scrollview, so sometimes dropdown is near bottom or just right enough above the keyboard that wont trigger the changing of position.

i also tried setting manually dropdown position to top whenever keyboard is open but dropdown loses the automatic functionality where in if user focus on search input it goes right above the keyboard.

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.

None yet

2 participants