vue-grid-layout icon indicating copy to clipboard operation
vue-grid-layout copied to clipboard

Prevent resizing outside the parent

Open MadalinaCi opened this issue 4 years ago • 3 comments

An option to prevent resizing outside the parent would benefit especially for the case of preserving the aspect ratio. Currently when you resize outside the parent, the aspect ratio is completely lost.

The solution for this is simple, interact.js providing an option for this case: interact.modifiers.restrict({ restriction: 'parent' })

I can create a merge request myself.

MadalinaCi avatar Jan 21 '21 10:01 MadalinaCi

If you could submit a PR would be great, thanks

gmsa avatar Jan 21 '21 11:01 gmsa

@gmsa I have updated the PR. Please, let me know if I should change anything.

MadalinaCi avatar Feb 01 '21 14:02 MadalinaCi

Any updates on this?

Aterr avatar Mar 30 '22 11:03 Aterr