Skip to content

Commit

Permalink
Merge pull request #343 from VisActor/338-bug-container-resize-chart-…
Browse files Browse the repository at this point in the history
…display-exception

338 bug container resize chart display exception
  • Loading branch information
fangsmile committed Sep 18, 2023
2 parents f2cb730 + de738f5 commit de874b5
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"changes": [
{
"comment": "fix: the width and height of the container is changed, chart display exception. #338\n\n",
"type": "patch",
"packageName": "@visactor/vtable"
}
],
"packageName": "@visactor/vtable",
"email": "[email protected]"
}
2 changes: 1 addition & 1 deletion packages/vtable/src/scenegraph/scenegraph.ts
Original file line number Diff line number Diff line change
Expand Up @@ -729,7 +729,7 @@ export class Scenegraph {
* @return {*}
*/
updateColWidth(col: number, detaX: number) {
updateColWidth(this, col, detaX);
updateColWidth(this, col, Math.round(detaX));
// this.updateContainerWidth(col, detaX);
this.updateContainer();
}
Expand Down

0 comments on commit de874b5

Please sign in to comment.