jbaysolutions/vue-grid-layout

Prevent resizing outside the parent

Offen

#547 geöffnet am 21.01.2021

 (3 Kommentare) (0 Reaktionen) (0 zugewiesene Personen)JavaScript (1.436 Forks)batch import
enhancementhelp wanted

Repository-Metriken

Stars
 (6.777 Sterne)
PR-Merge-Metriken
 (PR-Metriken ausstehend)

Beschreibung

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