react-resizable
react-resizable copied to clipboard
Is it possible to set the maximum width to 100% (width of its parent element)?
- [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??
FYI it seems you can just do:
<ResizableBox style={{ maxWidth: '100%' }} />