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

Prevent resizing without explicitly setting minSize and maxSize #719

Open
DoubleDebug opened this issue Nov 14, 2023 · 0 comments
Open

Prevent resizing without explicitly setting minSize and maxSize #719

DoubleDebug opened this issue Nov 14, 2023 · 0 comments

Comments

@DoubleDebug
Copy link

Hello and thanks for implementing this awesome React library!

I see that in your FAQ (linked below), you answered a question regarding the prevention of resizing:
https://github.com/johnwalley/allotment#how-do-i-prevent-a-pane-from-being-resized

However, in order to do this, you would need to know exactly how wide/tall your panes are.
In my opinion, there should be a boolean prop called resizable that gives more flexibility to the user.

<Allotment resizable={false}>
     <div>block 1</div>
     <div>block 2</div>
</Allotment>

Would you consider implementing this into the library?
It would be much appreciated. Thanks in advance!

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