From bc998c9d7958d4a19ad7c0011e838ff9368cad38 Mon Sep 17 00:00:00 2001 From: wangjiahao <1522128093@qq.com> Date: Thu, 20 Jan 2022 17:03:38 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E7=A7=BB=E5=8A=A8=E7=AB=AF=E5=B8=83?= =?UTF-8?q?=E5=B1=80=E8=87=AA=E5=8A=A8=E6=BB=9A=E5=8A=A8=E7=A7=BB=E5=8A=A8?= =?UTF-8?q?=E5=88=B0=E9=A1=B6=E9=83=A8=E7=BB=84=E4=BB=B6=E9=AB=98=E5=BA=A6?= =?UTF-8?q?=E5=8F=98=E5=A4=A7=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/src/components/DeDrag/index.vue | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/frontend/src/components/DeDrag/index.vue b/frontend/src/components/DeDrag/index.vue index 742bf26cd8..a53416fd9d 100644 --- a/frontend/src/components/DeDrag/index.vue +++ b/frontend/src/components/DeDrag/index.vue @@ -1236,8 +1236,9 @@ export default { // eslint-disable-next-line no-unused-vars const [_, newHeight] = snapToGrid(this.grid, 0, val, this.scale) // const bottom = restrictToBounds(this.parentHeight - newHeight - this.top, this.bounds.minBottom, this.bounds.maxBottom) - // private 将 this.bounds.minBottom 设置为0 - const bottom = restrictToBounds(this.parentHeight - newHeight - this.top, 0, this.bounds.maxBottom) + // private 将 this.bounds.minBottom parentHeight理论不设上限 所以这里不再检验bottom底部距离 + // const bottom = restrictToBounds(this.parentHeight - newHeight - this.top, 0, this.bounds.maxBottom) + const bottom = this.parentHeight - newHeight - this.top let right = this.right if (this.lockAspectRatio) { right = this.right - (this.bottom - bottom) * this.aspectFactor