提交 bc998c9d authored 作者: wangjiahao's avatar wangjiahao

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

上级 fae78f31
...@@ -1236,8 +1236,9 @@ export default { ...@@ -1236,8 +1236,9 @@ export default {
// eslint-disable-next-line no-unused-vars // eslint-disable-next-line no-unused-vars
const [_, newHeight] = snapToGrid(this.grid, 0, val, this.scale) const [_, newHeight] = snapToGrid(this.grid, 0, val, this.scale)
// const bottom = restrictToBounds(this.parentHeight - newHeight - this.top, this.bounds.minBottom, this.bounds.maxBottom) // const bottom = restrictToBounds(this.parentHeight - newHeight - this.top, this.bounds.minBottom, this.bounds.maxBottom)
// private 将 this.bounds.minBottom 设置为0 // private 将 this.bounds.minBottom parentHeight理论不设上限 所以这里不再检验bottom底部距离
const bottom = restrictToBounds(this.parentHeight - newHeight - this.top, 0, this.bounds.maxBottom) // const bottom = restrictToBounds(this.parentHeight - newHeight - this.top, 0, this.bounds.maxBottom)
const bottom = this.parentHeight - newHeight - this.top
let right = this.right let right = this.right
if (this.lockAspectRatio) { if (this.lockAspectRatio) {
right = this.right - (this.bottom - bottom) * this.aspectFactor right = this.right - (this.bottom - bottom) * this.aspectFactor
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论