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

可视区域的裁剪 应该 被 clientWidth/clientHeight 裁剪,否则,弹框将显示到出可视范围外去 #58

Open
Yangfan2016 opened this issue Oct 27, 2020 · 0 comments

Comments

@Yangfan2016
Copy link

修复 可视区域的计算,应该被 documentElement 的 clientWidth/clientHeight 裁剪,否则,弹框将显示到出可视范围外去(如下图)

前置条件: 图片中的滚动条为 window 的滚动条,其他容器的 overflow 均为 visible

实际结果:

image

预期结果:

image

@Yangfan2016 Yangfan2016 changed the title 当滚动条为 window 的滚动条时,可视区域的裁剪 应该 被 clientWidth/clientHeight 裁剪,否则,弹框将显示到出可视范围外去 可视区域的裁剪 应该 被 clientWidth/clientHeight 裁剪,否则,弹框将显示到出可视范围外去 Oct 27, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant