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

Popover 当气泡宽度最大的时候,气泡容器没有相对 getContainer 元素居中 #6721

Open
wakexiao opened this issue Aug 16, 2024 · 2 comments
Labels

Comments

@wakexiao
Copy link

Version of antd-mobile

5.34.0

Operating system and its version

No response

Browser and its version

No response

Sandbox to reproduce

No response

What happened?

0F9E4B2B-AAF9-4C16-8D8C-535B04FADCE1
官网的例子,如果把按钮居中,气泡宽度最宽的时候,气泡容器没有居中

Relevant log output

No response

@wakexiao wakexiao added the bug label Aug 16, 2024
@wakexiao wakexiao changed the title Popover 当气泡宽度最大的时候,气泡没有剧中 Popover 当气泡宽度最大的时候,气泡容器没有相对 getContainer 元素居中 Aug 16, 2024
@xiaoyao96
Copy link
Collaborator

xiaoyao96 commented Aug 26, 2024

如果需要气泡左右对齐,需将Popover的placement属性设置为bottom。

@wakexiao
Copy link
Author

wakexiao commented Sep 3, 2024

placement属性设置为bottom也不行,具体可以看一下下面这个 demo,好像和 Popover children 位置有关系
https://codesandbox.io/p/sandbox/k5ds3l?file=%2Fsrc%2FApp.tsx
image

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

No branches or pull requests

2 participants