提交 c9699056 编写于 作者: 雪洛's avatar 雪洛

fix(uni-app-x web): 修复list-item高度计算不准确的Bug

上级 b5b1cc0a
......@@ -19,13 +19,13 @@ function getSize(isVertical: boolean, el: HTMLElement) {
if (isVertical) {
return (
parseFloat(style.marginTop) +
el.offsetHeight +
el.getBoundingClientRect().height +
parseFloat(style.marginBottom)
)
} else {
return (
parseFloat(style.marginLeft) +
el.offsetWidth +
el.getBoundingClientRect().width +
parseFloat(style.marginRight)
)
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册