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

网格在felx布局错位问题 #1594

Closed
hqzh opened this issue May 21, 2020 · 10 comments
Closed

网格在felx布局错位问题 #1594

hqzh opened this issue May 21, 2020 · 10 comments

Comments

@hqzh
Copy link

hqzh commented May 21, 2020

在线地址

可以看到右侧的空白
微信截图_20200519163152

@Yanyan-Wang
Copy link
Contributor

似乎是 grid 的容器的 left:0px 导致的,可以先调用如下代码解决:

grid.getContainer().style.left = null;

@hqzh
Copy link
Author

hqzh commented May 22, 2020

似乎是 grid 的容器的 left:0px 导致的,可以先调用如下代码解决:

grid.getContainer().style.left = null;

感谢

@hqzh hqzh closed this as completed May 22, 2020
@hqzh
Copy link
Author

hqzh commented May 24, 2020

@Yanyan-Wang 用了这个无法改变窗口大小自适应了

@hqzh hqzh reopened this May 24, 2020
@Yanyan-Wang
Copy link
Contributor

那么这样呢:

grid.getContainer().style.left = `${menu.clientWidth}px`;

@hqzh
Copy link
Author

hqzh commented May 25, 2020

这样也是要在窗口监听的回调下一直设置值,和null没区别,感觉应该grid组件处理

@kooriookami
Copy link

给container容器加上样式position: relative;

@hqzh
Copy link
Author

hqzh commented Jul 22, 2020

给container容器加上样式position: relative;

你进在线例子试,是不行的

@gongran
Copy link

gongran commented Dec 25, 2020

image
grid.getContainer() undefined

@Yanyan-Wang
Copy link
Contributor

Yanyan-Wang commented Dec 25, 2020

image
grid.getContainer() undefined

Only after you assign the plugin to the graph instance, the plugin will be initialized

@Yanyan-Wang
Copy link
Contributor

题主问题在新版本中已不存在

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

4 participants