AdelRedaa97 / react-native-select-dropdown

react-native-select-dropdown is a highly customized dropdown | select | picker | menu for react native that works for andriod and iOS platforms.
MIT License
312 stars 133 forks source link

Dropdowns can Render out of the view #183

Open harryfos opened 3 months ago

harryfos commented 3 months ago

I was experiencing an issue where for-downs could render partially out of the view making some of the items unelectable, to replicate make a dropdown nearish the bottom of the screen with quite a few items in and it will be partially cut off.

The issue seems to occur because of useLayoutDropdown.js line 26, if height is not specified in dropdownStyle which is not listed as a required prop it uses devices window height / 4. It's quite simple for me to set the height in my usage but potentially dropdownStyle should be listed as required or for the getDropdownHeight to get a value another way.

VincentGillot commented 2 months ago

Same here, is there another fix to this? I don't want a huge dialog for only 3 options, but then I need a big dialog for long lists. Setting max and min heights do not work, only height.

tsiresymila15 commented 1 week ago

I have the same issue

Kam125 commented 1 week ago

Hey Guys, I had the same issues, & by reading @harryfos question & then the explanation, I tried this & it works for me dropdownStyle={{ height: 300, }}

Bo0tStr4p commented 6 days ago

Hi, I had dropdownStyle={{ height: 300, }} and now it works, but I had problems when screen orientation change