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

minSize ignored on window resize and initial render #141

Open
GordonSmith opened this issue Jul 22, 2021 · 2 comments
Open

minSize ignored on window resize and initial render #141

GordonSmith opened this issue Jul 22, 2021 · 2 comments

Comments

@GordonSmith
Copy link

GordonSmith commented Jul 22, 2021

If I set minSize to say 100, it is honoured when the splitter is moved, but if I resize the entire window it can get to less than 100...

@leefsmp
Copy link
Owner

leefsmp commented Jul 23, 2021

Did you set windowResizeAware={true} on the ReflexContainer? I would need to see a concrete example to tell if something is wrong with your layout.

@GordonSmith
Copy link
Author

GordonSmith commented Jul 23, 2021

Setting windowResizeAware to true makes it worse!

FWIW I was unable to reproduce in a vanilla page - but did isolate my issue down to when using it within a flex enabled container (a Fluent UI "Stack" for example).

I have a distilled example here: https://codesandbox.io/s/sharp-dewdney-zkvpb?file=/src/index.js

I suspect I need an outer div around your ReflexContainer that resets some of the parentage flex values to make yours behave correctly?

Steps to reproduce:

  1. Drag splitter to min size (to the top)
  2. Resize window to make it smaller
  3. Note that the top size is now less than the minSize

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

2 participants