fix: HiChart不设style.width 让CSS 100%管显示宽度
This commit is contained in:
1 parent
2bf6a0e219
commit
83aa8aa93e
1 file changed
+1
-2
@@ -162,8 +162,7 @@
|
||||
var h = 60;
|
||||
this.canvas.width = w * this._dpr;
|
||||
this.canvas.height = h * this._dpr;
|
||||
this.canvas.style.width = w + 'px';
|
||||
this.canvas.style.height = h + 'px';
|
||||
// CSS controls display size via width:100%;height:60px
|
||||
this.ctx.setTransform(this._dpr, 0, 0, this._dpr, 0, 0);
|
||||
this._draw();
|
||||
};
|
||||
|
||||
Reference in new issue
Block a user