fix: 移动端布局自动滚动移动到顶部组件高度变大问题

This commit is contained in:
wangjiahao 2022-01-20 17:03:38 +08:00
parent fae78f31c8
commit bc998c9d79

View File

@ -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