vue-grid-layout
vue-grid-layout copied to clipboard
Prevent resizing outside the parent
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.
If you could submit a PR would be great, thanks
@gmsa I have updated the PR. Please, let me know if I should change anything.
Any updates on this?