From 6d9ee54d526a0aec0213b80bbd4b63116ace3fd1 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 e69d091793ec..9fcb89ad6ab0 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 ||