Skip to content

Commit

Permalink
fixed overlap text resize issue (opensearch-project#1151)
Browse files Browse the repository at this point in the history
Signed-off-by: Vishal Kushwah <[email protected]>

Signed-off-by: Vishal Kushwah <[email protected]>
Co-authored-by: Vishal Kushwah <[email protected]>
  • Loading branch information
vkushwah and Vishal Kushwah authored Oct 18, 2022
1 parent 95cc8d2 commit 8b390c2
Showing 1 changed file with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -89,9 +89,15 @@ export const ExplorerVisualizations = ({
}
};

const syntheticResize = () => {
const event = window.document.createEvent('UIEvents');
event.initUIEvent('resize', true, false, window, 0);
window.dispatchEvent(event);
};

return (
<div id="vis__mainContent">
<EuiResizableContainer>
<EuiResizableContainer onPanelWidthChange={syntheticResize}>
{(EuiResizablePanel, EuiResizableButton) => (
<>
<EuiResizablePanel
Expand Down

0 comments on commit 8b390c2

Please sign in to comment.