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.

贡献者指南