jbaysolutions/vue-grid-layout

Prevent resizing outside the parent

Open

#547 创建于 2021年1月21日

在 GitHub 查看
 (3 评论) (0 反应) (0 负责人)JavaScript (6,777 star) (1,436 fork)batch import
enhancementhelp wanted

描述

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.

贡献者指南

Prevent resizing outside the parent · jbaysolutions/vue-grid-layout#547 | Good First Issue