react-fit-to-viewport icon indicating copy to clipboard operation
react-fit-to-viewport copied to clipboard

How to make FitToViewport resizing in particular directions?

Open KubaSlowikowski opened this issue 4 years ago • 2 comments

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.

KubaSlowikowski avatar Oct 18 '21 09:10 KubaSlowikowski

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.

pomber avatar Oct 18 '21 10:10 pomber

You can do this through

transformOrigin:'left top',

ksilligan avatar Jan 19 '22 18:01 ksilligan