Skip to content

Commit

Permalink
reset width in cc-right-flyout during unmount
Browse files Browse the repository at this point in the history
Signed-off-by: srikant <[email protected]>
  • Loading branch information
srikant-ch5 committed Nov 20, 2024
1 parent 244e0fd commit 5bfaf54
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,11 @@ class CommonCanvasRightFlyout extends React.Component {
this.getRightFlyoutResizeContent = this.getRightFlyoutResizeContent.bind(this);
}

componentWillUnmount() {
// Reset the flyout width to adjust as per content width in next render
this.props.canvasController.setRightFlyoutWidth(0);
}

onMouseDown(e) {
if (e.button === 0) {
document.addEventListener("mousemove", this.onMouseMoveX, true);
Expand Down

0 comments on commit 5bfaf54

Please sign in to comment.