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

关于滚动条自适应长度问题 #49

Open
wazilm852 opened this issue Dec 16, 2020 · 6 comments
Open

关于滚动条自适应长度问题 #49

wazilm852 opened this issue Dec 16, 2020 · 6 comments

Comments

@wazilm852
Copy link

组件外层的div我这边业务需求无法限制死宽度,这样做横向滚动的话,滚动条的宽度不会自适应

@tangdaohai
Copy link
Owner

设置 resize 属性了?

如果可以的话 希望能提供一个 demo 地址。

@mablevi
Copy link

mablevi commented Apr 21, 2021

设置了resize属性,拖拽浏览器,happy-scroll-container 的style width 似乎没有什么变化?

@tangdaohai
Copy link
Owner

设置了resize属性,拖拽浏览器,happy-scroll-container 的style width 似乎没有什么变化?

@mablevi resize 是针对滚动条外部容器大小发生变化后的处理。如果浏览器大小发生变化,而容器没有变化 则不会响应的。

@mablevi
Copy link

mablevi commented Apr 23, 2021

@tangdaohai 非常谢谢。我去试试

@mablevi
Copy link

mablevi commented Apr 28, 2021

我明白了,这个resize只是针对内部容器的变化,并不针对外部容器的变化

@mablevi
Copy link

mablevi commented Apr 28, 2021

我提交了一个 针对浏览器宽高变化的一个pull,请您帮我看看 @tangdaohai

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

3 participants