Skip to content

Commit a6f06b2

Browse files
author
ezhasiw
committed
implement generic xy view
1 parent adb219c commit a6f06b2

File tree

3 files changed

+925
-1
lines changed

3 files changed

+925
-1
lines changed

local-libs/traceviewer-libs/react-components/src/components/abstract-tree-output-component.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,8 @@ export abstract class AbstractTreeOutputComponent<
130130

131131
public getTreeWidth(): number {
132132
// Make tree thinner when chart has a y-axis
133-
const yAxisWidth = this.props.outputDescriptor.type === 'TREE_TIME_XY' ? this.getYAxisWidth() : 0;
133+
const type = this.props.outputDescriptor.type;
134+
const yAxisWidth = type === 'TREE_TIME_XY' || type === 'TREE_GENERIC_XY' ? this.getYAxisWidth() : 0;
134135
return Math.max(0, this.props.style.chartOffset - this.getHandleWidth() - yAxisWidth - this.getSashWidth());
135136
}
136137

0 commit comments

Comments
 (0)