Skip to content

Commit 7056380

Browse files
aaanhmarcdumais-work
authored andcommitted
Fix regression after refactoring Gantt chart that breaks the vertical scroll sync for tree and chart
Signed-off-by: Anh Hoang Nguyen <[email protected]>
1 parent 572a86f commit 7056380

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

react-components/src/components/abstract-gantt-output-component.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ export abstract class AbstractGanttOutputComponent<
100100
private rangeEventsLayer: TimeGraphRangeEventsLayer;
101101

102102
private horizontalContainer: React.RefObject<HTMLDivElement>;
103-
private chartTreeRef: React.RefObject<HTMLDivElement>;
103+
protected chartTreeRef: React.RefObject<HTMLDivElement>;
104104
protected markerTreeRef: React.RefObject<HTMLDivElement>;
105105
private containerRef: React.RefObject<ReactTimeGraphContainer>;
106106

react-components/src/components/gantt-chart-output-component.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ export class GanttChartOutputComponent extends AbstractGanttOutputComponent<
6969
</button>
7070
</div>
7171
<div
72-
ref={this.treeRef}
72+
ref={this.chartTreeRef}
7373
className="scrollable"
7474
onScroll={() => this.synchronizeTreeScroll()}
7575
style={{

react-components/src/components/timegraph-output-component.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ export class TimegraphOutputComponent extends AbstractGanttOutputComponent {
3939
return (
4040
<>
4141
<div
42-
ref={this.treeRef}
42+
ref={this.chartTreeRef}
4343
className="scrollable"
4444
onScroll={() => this.synchronizeTreeScroll()}
4545
style={{

0 commit comments

Comments
 (0)