react-fit-to-viewport
react-fit-to-viewport copied to clipboard
How to make FitToViewport resizing in particular directions?
Hi there!
I would like to ask you if its possible to make FitToViewport resizable but only in particular directions?
The point is that my resizable component has to be placed in top left corner in a div element and only increase it's size to the right and down.
Best regards.
Hi, it isn't possible. All the code is in this file maybe you can copy it to your project and adapt it to your needs.
You can do this through
transformOrigin:'left top',