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

swiper全屏引导时如果从右侧滑出不全屏显示 #6625

Open
liuyq1209 opened this issue May 16, 2024 · 1 comment
Open

swiper全屏引导时如果从右侧滑出不全屏显示 #6625

liuyq1209 opened this issue May 16, 2024 · 1 comment
Labels

Comments

@liuyq1209
Copy link

liuyq1209 commented May 16, 2024

Version of antd-mobile

5.33.2

Operating system and its version

Others

Browser and its version

No response

Sandbox to reproduce

No response

What happened?

在使用swiper时有全屏引导的案例,popup的position值为bottom时可以正常全屏引导,当position改为right时,不全屏
如图:
image
image

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

Relevant log output

No response

@liuyq1209 liuyq1209 added the bug label May 16, 2024
@yezhonghu0503
Copy link
Contributor

image
这个不是bug,Popup的宽或高是根据props.children内部的width或height来决定的,你这里没有设置width,当你设置左右弹出的时候,它的计算距离就不会是你想要的全屏,如果要全屏设置一下width或者height就好了,同样的你把height注释掉之后,你会发现从底部弹出时也不会是全屏

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