react-resizable icon indicating copy to clipboard operation
react-resizable copied to clipboard

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

Open shivakantshukla55 opened this issue 4 years ago • 1 comments

  • [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??

shivakantshukla55 avatar Aug 23 '21 08:08 shivakantshukla55

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

mattcasey avatar Apr 04 '22 21:04 mattcasey