Skip to content

Commit

Permalink
Merge pull request #12408 from fedirjh/Fix-11486
Browse files Browse the repository at this point in the history
  • Loading branch information
thienlnam authored Nov 4, 2022
2 parents 8da82be + 334ea57 commit d6bac25
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
5 changes: 4 additions & 1 deletion src/components/Tooltip/TooltipRenderedOnPageBody.js
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,10 @@ class TooltipRenderedOnPageBody extends React.PureComponent {
if (prevProps.text === this.props.text) {
return;
}
this.updateTooltipTextWidth();

// Reset the tooltip text width to 0 so that we can measure it again.
// eslint-disable-next-line react/no-did-update-set-state
this.setState({tooltipTextWidth: 0}, this.updateTooltipTextWidth);
}

updateTooltipTextWidth() {
Expand Down
2 changes: 0 additions & 2 deletions src/styles/getTooltipStyles.js
Original file line number Diff line number Diff line change
Expand Up @@ -156,9 +156,7 @@ export default function getTooltipStyles(
color: themeColors.textReversed,
fontFamily: fontFamily.GTA,
fontSize: tooltipFontSize,
overflowWrap: 'normal',
overflow: 'hidden',
whiteSpace: 'nowrap',
},
pointerWrapperStyle: {
position: 'fixed',
Expand Down

0 comments on commit d6bac25

Please sign in to comment.