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

DatePicker弹窗显示位置通过一个参数来指定其总是完全显示在视口之内 #48547

Open
zhipenglin opened this issue Apr 19, 2024 · 2 comments

Comments

@zhipenglin
Copy link
Contributor

What problem does this feature solve?

当在小屏幕设备上使用DatePicker时,其选择面板总是会相对于Input和placement方向计算位置,假如此时Input刚好位于屏幕中央且无法通过滚动来改变其位置,这时无论选择面板从上面弹出还是从下面弹出均不能完全显示在视口之内,导致功能无法使用。
所以期望通过该参数显式指定,当发生这种情况时,优先展示出全部的面板,忽略从Input位置开始定位,这样即使选择面板暂时遮盖住了Input,也保证了正常功能的使用

1713509993722

What does the proposed API look like?

添加参数 alwaysInViewport ,如果传入true开启此功能

@MadCcc
Copy link
Member

MadCcc commented Apr 24, 2024

Duplicate of #48603

@nianyi-778
Copy link

有结果ma?

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

No branches or pull requests

3 participants