Skip to content
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

windowResizeAware horizontal container #167

Open
unematiii opened this issue Aug 16, 2022 · 1 comment
Open

windowResizeAware horizontal container #167

unematiii opened this issue Aug 16, 2022 · 1 comment

Comments

@unematiii
Copy link

unematiii commented Aug 16, 2022

I have window resize aware horizontal container and I need to adjust (animate) one of the elements height using size prop - that works!

I've set windowResizeAware to true, to keep the proportions - at least this is what I hoped the outcome would be. However, when you resize window width (height remains the same!), flex attributes (heights) of both containers also change! This is an issue because the last know height I received from onStopResize callback is now invalid!

I've prepared a Codesandbox demo.

Edit: Would it be possible to call onResize for each ReflexElement when window is resized and windowResizeAware is set?

@unematiii
Copy link
Author

Might be related to #147 ...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant