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

横向滚动条的位置 #4294

Closed
wucaibin opened this issue Oct 15, 2019 · 7 comments
Closed

横向滚动条的位置 #4294

wucaibin opened this issue Oct 15, 2019 · 7 comments

Comments

@wucaibin
Copy link

What problem does this feature solve?

既有纵向滚动条又有横向滚动条的情况,需要把纵向滚动条拖到底部,才能使用横向滚动条。这是一个灾难性的设计。

What does the proposed API look like?

横向滚动条能悬浮在界面底部。

@zorro-bot
Copy link

zorro-bot bot commented Oct 15, 2019

Translation of this issue:

Lateral position of the slider

What problem does this feature solve?

Both have transverse vertical scroll bar scroll bar, you need to drag the bottom of the vertical scroll bar to use the horizontal scroll bar. This is a disastrous design.

What does the proposed API look like?

Horizontal scroll bar can be suspended in the bottom of the screen.

@zorro-bot
Copy link

zorro-bot bot commented Oct 15, 2019

Hello @wucaibin. Please provide a online reproduction by forking this link https://stackblitz.com/edit/ng-zorro-antd-start or a minimal GitHub repository.
Issues labeled by Need Reproduce will be closed if no activities in 7 days.

你好 @wucaibin, 我们需要你提供一个在线的重现实例以便于我们帮你排查问题。你可以通过点击 此处 创建一个 stackblitz 或者提供一个最小化的 GitHub 仓库
被标记为 Need Reproduce 的 issue 7 天内未跟进将会被自动关闭。

@vthinkxie
Copy link
Member

vthinkxie commented Oct 15, 2019

具体哪个组件,什么情况下碰到的这个情况
横向和纵向滚动条是由css控制的,div超宽超高不由组件库控制,也不是你用了组件就会全部帮你处理

@wucaibin
Copy link
Author

wucaibin commented Oct 15, 2019 via email

@vthinkxie
Copy link
Member

vthinkxie commented Oct 15, 2019

windows
截屏2019-10-15上午11 44 16
mac
截屏2019-10-15上午11 45 29

本来就是悬浮在底部的,官网的demo你看着也有问题?

@wucaibin
Copy link
Author

wucaibin commented Oct 15, 2019 via email

@vthinkxie
Copy link
Member

根据屏幕高度计算为什么不可取,css 里面也就是 calc(100vh - 100px) 这样的表达式,建议了解一下 css 相关内容,组件 api 不会二次包装 css 语法

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