-
Notifications
You must be signed in to change notification settings - Fork 113
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
respect prop style object overflow property #16
Conversation
Hi, @Jonathan-Millar! First of all, thank you for your contribution! Now to the change itself =) It was actually intentional, otherwise it is possible to override overflow. Can you give an example of doing collapse animation with showing overflowed content? I guess, I can imagine some crazy case, but it would be awesome if you can give some real example. Maybe it is better to wrap your scrollable content into a scrollable fixed-height |
I don't think its that crazy an idea. I am using it for a side menu that has children links. There could be hundreds so having a fixed height keeps the side menu usable, and scrolling within the container ensures I can still access all list elements. You are correct, adding a scrollable container inside would work, but why enforce overflow:hidden? I think its a great default but let dev's override it I think |
It is quite common to have If something can be achieve as easy as having internal div with overflow:auto, then isn't it better then updating lib itself? We can add this to PS: still discussing though, I'm not quite sure if I am right |
I think you should leave overflow:hidden so that when 90% of people use it, On Tue, Nov 17, 2015, 1:42 AM Nik Butenko [email protected] wrote:
|
After some more thinking I will merge this in. As a developer I would prefer to have more freedom. I need to ask you to add couple of lines to the readme about the feature and warn to not specify height and overflow if you want collapse to work as intended. Thank you, @Jonathan-Millar |
respect prop style object overflow property
Published 1.5.0 https://github.com/nkbt/react-collapse/releases/tag/v1.5.0 |
Currently if the css property overflow is passed in the style object it is stepped on and not respected, resulting in fixed height containers not being scrollable. This moves the style spread to after defaults to ensure it is respected,