From 03d8088b24b6bbef9022a96f5cc39058f58a4ebb Mon Sep 17 00:00:00 2001 From: maryliag Date: Thu, 3 Nov 2022 22:25:17 +0000 Subject: [PATCH] ui: fiz size chart when first load Previously, the chart sizes were being properly updated when resized, but the initial value was not correct. This commit adds the call to handle resize so it can load the correct size on first load. Fix #91207 Release note: None --- .../cluster-ui/src/statementDetails/statementDetails.tsx | 1 + 1 file changed, 1 insertion(+) diff --git a/pkg/ui/workspaces/cluster-ui/src/statementDetails/statementDetails.tsx b/pkg/ui/workspaces/cluster-ui/src/statementDetails/statementDetails.tsx index fea493077106..4f8b12866579 100644 --- a/pkg/ui/workspaces/cluster-ui/src/statementDetails/statementDetails.tsx +++ b/pkg/ui/workspaces/cluster-ui/src/statementDetails/statementDetails.tsx @@ -265,6 +265,7 @@ export class StatementDetails extends React.Component< } componentDidUpdate(prevProps: StatementDetailsProps): void { + this.handleResize(); if ( prevProps.timeScale != this.props.timeScale || prevProps.statementFingerprintID != this.props.statementFingerprintID ||