jbaysolutions/vue-grid-layout

Prevent resizing outside the parent

Open

#547 opened on Jan 21, 2021

View on GitHub
 (3 comments) (0 reactions) (0 assignees)JavaScript (6,777 stars) (1,436 forks)batch import
enhancementhelp wanted

Description

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.

Contributor guide