ant-design TreeSelect Popup未对齐

yduiuuwa  于 4个月前  发布在  其他
关注(0)|答案(4)|浏览(57)

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 |

c2e8gylq

c2e8gylq1#

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

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

xbp102n0

xbp102n02#

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

yqkkidmi

yqkkidmi4#

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

相关问题