Skip to content

Commit

Permalink
Merge pull request #27732 from bernhardoj/fix/26831-tooltip-flickers
Browse files Browse the repository at this point in the history
Fix three-dot button tooltip flickers
  • Loading branch information
puneetlath authored Sep 20, 2023
2 parents 498162b + 5ea99f2 commit fd4f154
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/PopoverWithMeasuredContent.js
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ function PopoverWithMeasuredContent(props) {
but we can't measure its dimensions without first rendering it.
*/
<View
style={styles.invisible}
style={styles.invisiblePopover}
onLayout={measurePopover}
>
{props.children}
Expand Down
6 changes: 6 additions & 0 deletions src/styles/styles.js
Original file line number Diff line number Diff line change
Expand Up @@ -2555,6 +2555,12 @@ const styles = (theme) => ({
opacity: 0,
},

invisiblePopover: {
position: 'absolute',
opacity: 0,
left: -9999,
},

containerWithSpaceBetween: {
justifyContent: 'space-between',
width: '100%',
Expand Down

0 comments on commit fd4f154

Please sign in to comment.