antvis/G2

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

Jokerdeath posted onGitHub

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


autoFit 不是 autoFix!

posted by hustcc about 4 years ago

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

posted by Jokerdeath about 4 years ago

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

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

posted by Jokerdeath about 4 years ago

image

posted by Jokerdeath about 4 years ago

Fund this Issue

$0.00
Funded

Pull requests