Skip to content

Commit 20533a5

Browse files
committed
Fix timegraph misalignment when analysis running
Wait for table header to be rendered before setting top margin. Fixes #1207 Signed-off-by: Patrick Tasse <patrick.tasse@gmail.com>
1 parent a823659 commit 20533a5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -390,8 +390,8 @@ export class TimegraphOutputComponent extends AbstractTreeOutputComponent<Timegr
390390
);
391391
signalManager().emit('ROW_SELECTIONS_CHANGED', signalPayload);
392392
}
393-
if (!isEqual(this.state.columns, prevState.columns)) {
394-
if (this.state.columns) {
393+
if (this.state.timegraphTree.length > 0 && prevState.timegraphTree.length === 0) {
394+
if (this.state.columns && this.state.columns.length > 0) {
395395
const header = this.treeRef.current?.querySelector('th');
396396
if (header) {
397397
new ResizeObserver(target => {

0 commit comments

Comments
 (0)