jbaysolutions/vue-grid-layout

Prevent resizing outside the parent

Open

#547 aperta il 21 gen 2021

Vedi su GitHub
 (3 commenti) (0 reazioni) (0 assegnatari)JavaScript (1436 fork)batch import
enhancementhelp wanted

Metriche repository

Star
 (6777 star)
Metriche merge PR
 (Nessuna PR mergiata in 30 g)

Descrizione

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.

Guida contributor