-
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
Specify a 'collapse height' #47
Comments
Thanks! There even was a pr for that but I don't really want to add separate We need to add an example though |
Ahh yes I see. Thanks! |
Well, whole collapse is about animation, so you are not getting too much of |
Ah but I think it'll be confusing to have a "Collapse" component that's set to always "open" then place a toggle inside of that to actually do the collapsing. I suppose I could call it something else like so it's not as confusing. I have done this but the div inside |
@nkbt So how exactly would you get the fixed height for the internal div? I tried something like this:
and
However, this only works when going from showing clipped content to showing all the content, and not vice versa. The content is a list of 1 to 4 elements, and initially i am required to show only the top 150px of the first element (so i can't just add/remove elements from the list). |
@catalinfeier ah I see what you mean... That looks like a legit case here. In new |
Another thing i tried that somewhat worked (may help somebody else) is to use the
The animation seems to be working correctly. The only problem is that using this solution only triggers the Any other ideas? |
|
Almost correct readme is in master https://github.com/nkbt/react-collapse/tree/master |
Your solution with switching to fixedHeight might work with |
@nkbt is there a specific npm/node version required for the alpha installation? tried with node 5.0 and 6.0 and i got |
@catalinfeier sorry my bad
So either |
Hey, love this!!
just wondering if it'd be possible to set a collapse height, so that instead of collapsing to 0, it could be Xpx high still? I'd like to use it as a text truncation / minimization tool
Thanks :)
The text was updated successfully, but these errors were encountered: