-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
宽度和高度设置最佳比例、单位及响应式的问题 #16
Comments
我也遇到同样问题 |
我找到了解决方法,已经解决了Bootstrap响应式自适应宽度的方法,加入resize事件 |
宽高保持比例其实在具体的项目中不常见,一般都是保持高度,根据窗口大小自适应宽度。 有两种方案: 方案一:
方案二: 自己监听resize事件,调用chart.changeSize(width,height) |
bootstrap响应式,多个tab下,监听了resize事件。
` 人口属性标签
|
tab设置forceFit出问题的原因在于:
所以你使用tab的时候如果要自适应宽度的话,有两个方案:
chart.forceFit(); |
simaQ
pushed a commit
that referenced
this issue
Nov 22, 2017
simaQ
pushed a commit
that referenced
this issue
Nov 22, 2017
#16 bufix: G2.Chart is not a constructor See merge request !31
simaQ
pushed a commit
that referenced
this issue
Nov 22, 2017
simaQ
pushed a commit
that referenced
this issue
Nov 22, 2017
#16 bufix: G2.Chart is not a constructor See merge request !31
simaQ
pushed a commit
that referenced
this issue
Nov 22, 2017
simaQ
pushed a commit
that referenced
this issue
Nov 22, 2017
#16 bufix: G2.Chart is not a constructor See merge request !31
simaQ
pushed a commit
that referenced
this issue
Nov 22, 2017
simaQ
pushed a commit
that referenced
this issue
Nov 22, 2017
#16 bufix: G2.Chart is not a constructor See merge request !31
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
用了BootStrap的前端,再用G2的时候,设定的高度和宽度一直不起作用,另外怎么实现响应式的宽度和高度(保持长宽比例)?
The text was updated successfully, but these errors were encountered: