-
Notifications
You must be signed in to change notification settings - Fork 842
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
onPanelWidthChange for EuiResizeableContainer only provides sizes for two panels #3466
Comments
@thompsongl I think it makes sense to fire the onPanelWidthChange callback with all of the sizes, instead of just the two affected, thoughts? I could not replicate point 2. For testing, I modified the docs' Horizontal resizing with three panels section to log the sizes object, and those values looked correct (not consuming the entire space). src-docs/src/views/resizable_container/resizable_container_three_panels.js
|
@chandlerprall You are right about (2). Apologies -- my math was off. My third column was tiny so I rounded up in my head. On a related note, is there a way to not make EuiResizeableContainer a controlled element when Because right now, as soon as you specify the |
Thanks for the feedback, @atifsyedali Just to clarify, it sounds like your ideal case is:
|
@thompsongl yes that would be ideal! |
I'd like to work on this one |
@thompsongl So, for the persistence of the size, what do you think should be used, redux-persist perhaps? |
@shrey In this case, the data persistence in question would be done entirely in the consuming application; EUI would have no part in how those size values are stored. Redux is certainly an available option for apps using EUI, but we make no prescription. The necessary changes for EUI would be:
|
Resolved by #3630 |
First, thank you for this amazing library of components!
Problem:
When I attach an
onPanelWidthChange
on anEuiResizableContainer
, the provided argument only gives sizes for two panels that are currently change.Furthermore, it assumes those two panels are the only ones in the container, such that one panel takes up the space of the other panels not indexed in the provided object.
I have to end up doing
_.extend({}, oldState, newState)
but this is problematic too because of (2) above.Not sure how to solve this atm. Any help would be greatly appreciated.
The text was updated successfully, but these errors were encountered: