-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
网格在felx布局错位问题 #1594
Comments
似乎是 grid 的容器的 left:0px 导致的,可以先调用如下代码解决: grid.getContainer().style.left = null; |
感谢 |
@Yanyan-Wang 用了这个无法改变窗口大小自适应了 |
那么这样呢: grid.getContainer().style.left = `${menu.clientWidth}px`; |
这样也是要在窗口监听的回调下一直设置值,和null没区别,感觉应该grid组件处理 |
给container容器加上样式position: relative; |
你进在线例子试,是不行的 |
This was referenced Jan 8, 2021
题主问题在新版本中已不存在 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
在线地址
可以看到右侧的空白
The text was updated successfully, but these errors were encountered: