Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

mip-carousel 图片偏移一个滚动条宽度 #680

Open
Brunoon opened this issue Aug 14, 2019 · 0 comments
Open

mip-carousel 图片偏移一个滚动条宽度 #680

Brunoon opened this issue Aug 14, 2019 · 0 comments

Comments

@Brunoon
Copy link
Contributor

Brunoon commented Aug 14, 2019

BUG 描述

在 mip-carousel 渲染前,由于其中包含多个 mip-img,高度为各个 mip-img、占位符的高度之和,如果高度大于视窗高度,就会出现滚动条,因此 mip-carousel 渲染时的相关值会受滚动条影响,而在渲染后 mip-carousel 的实际高度小于视窗,不会出现滚动条,因此造成图片偏移了一个滚动条宽度。

复现步骤

<mip-carousel layout="responsive" width="600" height="264"> <mip-img src="..."> <mip-img src="..."> <mip-img src="..."> </mip-carousel>

期望结果

不发生偏移,mip-carousel 渲染前高度不应被子元素撑开

截图

image

环境及版本信息:
PC,Chrome

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant