From 2a890cf822f776f379530e67cf538d7f908d8993 Mon Sep 17 00:00:00 2001 From: maryliag Date: Thu, 3 Nov 2022 18:25:17 -0400 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 962b165cd946..ba996c8f5a66 100644 --- a/pkg/ui/workspaces/cluster-ui/src/statementDetails/statementDetails.tsx +++ b/pkg/ui/workspaces/cluster-ui/src/statementDetails/statementDetails.tsx @@ -279,6 +279,7 @@ export class StatementDetails extends React.Component< } componentDidUpdate(prevProps: StatementDetailsProps): void { + this.handleResize(); if ( prevProps.timeScale != this.props.timeScale || prevProps.statementFingerprintID != this.props.statementFingerprintID ||