jbaysolutions/vue-grid-layout

Prevent resizing outside the parent

オープン

#547 opened on 2021/01/21

 (3 件のコメント) (0 件のリアクション) (0 人の担当者)JavaScript (1,436 件のフォーク)batch import
enhancementhelp wanted

Repository metrics

Stars
 (6,777 個のスター)
PR merge metrics
 (30d に merged PR はありません)

説明

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.

コントリビューターガイド