-
Notifications
You must be signed in to change notification settings - Fork 73
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
Is there a way to completely hide minimized panel? #146
Comments
flexGrow
for <ReflexElement>
flexGrow
for <ReflexElement>
?
flexGrow
for <ReflexElement>
?flexGrow
for <ReflexElement>
?
flexGrow
for <ReflexElement>
?
Unfortunately I don't have a good workaround for hat scenario. What I'm doing usually is to set the If the size is updated programmatically I would assume it's your app responsibility to be aware of that and act accordingly. You could set |
@leefsmp Yeah, I do use the But even |
I managed to workaround this buy dynamically applying some extra CSS when I want to collapse:
In my case just removing the element from the DOM doesn't work because the element would lose state and rerendering it has a performance hit. Obviously this only works if your container only has two elements. |
Hi @leefsmp,
When you resize a panel to the minimum, due to
flexGrow
cannot seem to be set to0
, you will get a little slice of the panel being shown (in the following example, you can see the black line on the left)Is there a way to get rid of this? If the user is trying to resize by dragging, I can hack
onStopResize
to round theflexGrow
to 1 or 0 if theflexGrow
is within0.99 - 1
and0 - 0.01
respectively; if the size is set programmatically, I could potentially create a listener on the elements and round theirflexGrow
.My use case is still very basic for the most part, I just have 2 elements per container, I guess if there is a prop at
ReflexContainer
level to enable rounding or if we could expose a handler when the size is updated programmatically (rather than by user's mouse drag action), I could figure something out.I could see when multiple panels come into play, this might get tricky, but I imagine you must have thought about this case before so I want to know if you have some solutions/considerations in mind.
As always, thank you so much for this lovely library, I couldn't say how much I appreciate your putting effort and thoughts into this 🙏 !
The text was updated successfully, but these errors were encountered: