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

Is it possible to set the maximum width to 100% (width of its parent element)? #177

Open
shivakantshukla55 opened this issue Aug 23, 2021 · 1 comment

Comments

@shivakantshukla55
Copy link

  • [Is it possible to set the maximum width to 100% (width of its parent element)? ] Question

Thank you for this wonderful and useful widget.

Problem Report

I am trying to change the width of the div through dragging the resizeHandle. minimum i want to drag is zero which is working perfectly fine but in case of increasing the width maximum i want to drag is to its 100%.
(cant control it with css max-width because i need the data for the backend).
Is there any way out??

@mattcasey
Copy link

mattcasey commented Apr 4, 2022

FYI it seems you can just do:
<ResizableBox style={{ maxWidth: '100%' }} />

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