Skip to content

Commit

Permalink
fix: when container resize trigger mark line resize #2883
Browse files Browse the repository at this point in the history
  • Loading branch information
fangsmile committed Nov 21, 2024
1 parent 65ea8fb commit 800ada5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion packages/vtable-gantt/src/scenegraph/frame-border.ts
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ export class FrameBorder {
resize() {
const { cornerRadius, borderColor, borderLineWidth, borderLineDash } =
this._scene._gantt.parsedOptions.outerFrameStyle;
this.border.setAttributes({
this.border?.setAttributes({
// x: -borderLineWidth / 2,
// y: borderLineWidth / 2,
width:
Expand Down
1 change: 1 addition & 0 deletions packages/vtable-gantt/src/scenegraph/scenegraph.ts
Original file line number Diff line number Diff line change
Expand Up @@ -168,6 +168,7 @@ export class Scenegraph {
} as any);
this.grid.resize();
this.taskBar.resize();
this.markLine.refresh();
this.frameBorder.resize();
}

Expand Down

0 comments on commit 800ada5

Please sign in to comment.