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

在uniapp中,使用rpx单位,u-tabs下标偏移错误的问题 #1082

Open
origin3366 opened this issue Aug 13, 2024 · 0 comments
Open

在uniapp中,使用rpx单位,u-tabs下标偏移错误的问题 #1082

origin3366 opened this issue Aug 13, 2024 · 0 comments

Comments

@origin3366
Copy link

版本

2.0.37

重现步骤

在uniapp中,使用rpx单位,u-tabs下标偏移错误的问题

期望的结果是什么?

u-tabs下标位于u-tabs-item中间下边

实际的结果是什么?

u-tabs下标位于u-tabs-item中间偏左


setLineLeft函数中,计算偏移量,应该考虑rpx的情况,把lineWidth除以2

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