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

TreeSelect Popup未对齐 #48476

Open
TMRnoMEM opened this issue Apr 16, 2024 · 4 comments
Open

TreeSelect Popup未对齐 #48476

TMRnoMEM opened this issue Apr 16, 2024 · 4 comments
Labels
🐛 Bug Ant Design Team had proved that this is a bug.

Comments

@TMRnoMEM
Copy link

Reproduction link

Edit on StackBlitz

Steps to reproduce

点击显示Popup即可看到未对齐

What is expected?

Popup与TreeSelect对齐

What is actually happening?

产生了偏移

Environment Info
antd 5.16.2
React 18
System Windows 11 23H2
Browser Microsoft Edge 123

image

@afc163
Copy link
Member

afc163 commented Apr 16, 2024

https://stackblitz.com/edit/react-gmuae1?file=demo.tsx

你给的例子貌似是符合预期的,右侧滚动空间不够自动向左边找空间。

图片

@TMRnoMEM
Copy link
Author

右侧空间足够的情况下 会出现偏移

@TMRnoMEM
Copy link
Author

动画

@afc163 afc163 added 🐛 Bug Ant Design Team had proved that this is a bug. and removed unconfirmed labels Apr 17, 2024
@afc163
Copy link
Member

afc163 commented Apr 17, 2024

Chrome 下确实有问题,Firefox 是好的。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🐛 Bug Ant Design Team had proved that this is a bug.
Projects
None yet
Development

No branches or pull requests

2 participants