jbaysolutions/vue-grid-layout

Prevent resizing outside the parent

開放

#547 建立於 2021年1月21日

 (3 則留言) (0 個反應) (0 位負責人)JavaScript (1,436 個分叉)batch import
enhancementhelp wanted

倉庫指標

星標
 (6,777 顆星)
PR 合併指標
 (30 天內沒有已合併 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.

貢獻者指南