-
Notifications
You must be signed in to change notification settings - Fork 628
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
Height of the pop up #34
Comments
Hello @hwainam, it's not possible to set a maximum height for the drop down at the moment, but that's not a bad idea :) Thanks! |
I have the same case, a lot of elements and the drop-down is huge. Is this feature being implemented? |
I would like this feature as well! |
Is this feature already implemented? I also need it. |
@kevin-hirsch Was wondering if you'd be open to a PR for this? I've run into a scenario where I need this as well (being able to essentially set a max-height that is LESS than the full window's height). Seems like it should be straight-forward enough to create, but let me know your thoughts! |
The implementation of this feature is quite easy. All you have to do is change "visibleHeight" in side the DropDown file to whatever size you need. If you need to see a sample i can upload my work |
Hello, kevin-Hirsch I have to change visibleHeight of DropDown. Help for that. Thank you |
It's simple, in the DropDown class you will find a variable called tableHeight return the height of the tableView. You can change it by this code, also search for tableView.isScrollEnabled and comment this line (line 482).
|
Here's my solution in Declared
and then modified this
usage is simply |
Hey everyone.. I have a slightly different solution that preserves the scrolling of the tableView with a smaller tableView size. Declare dropDownHeight like annjawm added.
Instead of updating the
Hope this is helpful... 👍 |
Hi derekjcarter , Please help |
@Hirak-CTS, My solution didn't really change the anchorView or location where it's set. You might be working with an older version if you're setting |
@kevin-hirsch @SticklyMan : Any update on this ?? |
There is no Height property currently. If there is, please add to README. |
It's doesn't work now. It makes app crash. Anyone knows the reason and solution? It's crash log |
You can use bottom dropDown.offsetFromWindowBottom. It works some cases. |
If you set this property like that, it will not work properly. But if you set the
|
This is not working on iPad in landscape mode. Can you guys please check? Is there any new direct method available for specifying the drop-down height? |
this worked |
Is it possible to set the height of the pop up?
i have 30 elements in the drop down, when the drop down is shown, it covers my whole screen.
Is there a way to display fixed height so that only a few item shown and user can scroll through it?
The text was updated successfully, but these errors were encountered: