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

After setting the width of the body, when the window.visualviewport is smaller than the width of the body, the positioning of the Slider component will be inaccurate #4542

Open
1 task
chenjian0915 opened this issue Aug 18, 2021 · 0 comments

Comments

@chenjian0915
Copy link

  • I have searched the issues of this repository and believe that this is not a duplicate.

Version

1.7.7

Environment

系统版本浏览器版本无关,Vue version 2.6.14

Reproduction link

https://www.antdv.com/components/slider-cn/

Steps to reproduce

首先我不确定是否贵团队知道这个问题或者就是如此设计:
上面的重现链接是Slider的文档,只要在控制台中给body设置一个宽度1200px,视口宽度小于1200px Slider 点击百分比就会有问题

What is expected?

贵团队如果知道这个问题或者就是如此设计,那就请忽略本条issue;如果不是的话希望Slider滑动不要受到body设置宽度的影响

What is actually happening?

Slider滑动受到body设置宽度的影响

@github-actions github-actions bot changed the title 给body设置宽度后 当可视视口宽度小于body宽度时,Slider组件的定位会不准确,不知道这算不算问题 After setting the width of the body, when the width of the visible viewport is smaller than the width of the body, the positioning of the Slider component will be inaccurate, I don’t know if this is a problem Aug 18, 2021
@chenjian0915 chenjian0915 changed the title After setting the width of the body, when the width of the visible viewport is smaller than the width of the body, the positioning of the Slider component will be inaccurate, I don’t know if this is a problem After setting the width of the body, when the window.visualviewport is smaller than the width of the body, the positioning of the Slider component will be inaccurate Aug 18, 2021
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

2 participants