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

BUG: 图标超出容器,autoFit失效 #3380

Closed
Jokerdeath opened this issue Apr 19, 2021 · 4 comments
Closed

BUG: 图标超出容器,autoFit失效 #3380

Jokerdeath opened this issue Apr 19, 2021 · 4 comments

Comments

@Jokerdeath
Copy link

Jokerdeath commented Apr 19, 2021

1.容易设置宽高,width="100%",height="400px"
2.new chart()设置autoFit为true
3.打开页面,图表超出容器,溢出到屏幕之外

@hustcc
Copy link
Member

hustcc commented Apr 19, 2021

autoFit 不是 autoFix!

@hustcc hustcc closed this as completed Apr 19, 2021
@Jokerdeath
Copy link
Author

进行更改,sorry,是autoFit,描述打错了

@Jokerdeath
Copy link
Author

Jokerdeath commented Apr 19, 2021

// 修改autoFit第一次渲染超出父级容器的问题
const e = document.createEvent('Event')
e.initEvent('resize', true, true)
window.dispatchEvent(e)

我使用了以上方法手动修复

@Jokerdeath Jokerdeath changed the title BUG: 图标超出容器,autoFix失效 BUG: 图标超出容器,autoFit失效 Apr 19, 2021
@Jokerdeath
Copy link
Author

image

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

2 participants