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

[picker] 初始化滚动参数,itemHeight写死了40,不能根据样式设置的高度来定义。 #1207

Closed
MMZiLi0514 opened this issue Jan 12, 2024 · 2 comments · Fixed by #1576

Comments

@MMZiLi0514
Copy link

MMZiLi0514 commented Jan 12, 2024

tdesign-mobile-vue 版本

1.0.9

重现链接

No response

重现步骤

样式全局定义为50px
:root {
--td-picker-item-height: 50px;
}
滚动定位出现偏差
screenshot-20240112-180140

期望结果

No response

实际结果

No response

框架版本

No response

浏览器版本

No response

系统版本

No response

Node版本

No response

补充说明

No response

Copy link
Contributor

👋 @MMZiLi0514,感谢给 TDesign 提出了 issue。
请根据 issue 模版确保背景信息的完善,我们将调查并尽快回复你。

@fennghuang
Copy link
Collaborator

感谢反馈 这个问题我看下

jby0107 added a commit to jby0107/tdesign-mobile-vue that referenced this issue Sep 10, 2024
deleted unexpected reset of itemHeight in initScrollParams(), changed the positioning of the
indicator to a dynamic value based on --td-picker-item-height; Added a demo of using custom height

fix Tencent#1207
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

Successfully merging a pull request may close this issue.

2 participants