Skip to content

Commit

Permalink
Merge pull request #24542 from waterim/feat-21809-The-popup-menu-over…
Browse files Browse the repository at this point in the history
…laps

The popup menu overlaps the + icon on room
  • Loading branch information
neil-marcellini authored Aug 28, 2023
2 parents 6ce9f55 + 9520803 commit c7bdc81
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/PopoverWithMeasuredContent.js
Original file line number Diff line number Diff line change
Expand Up @@ -131,15 +131,15 @@ function PopoverWithMeasuredContent(props) {
const verticalShift = computeVerticalShift(adjustedAnchorPosition.top, popoverHeight, windowHeight);
const shiftedAnchorPosition = {
left: adjustedAnchorPosition.left + horizontalShift,
top: adjustedAnchorPosition.top + verticalShift,
bottom: windowHeight - (adjustedAnchorPosition.top + popoverHeight) - verticalShift,
};
return isContentMeasured ? (
<Popover
// eslint-disable-next-line react/jsx-props-no-spreading
{...props}
anchorPosition={shiftedAnchorPosition}
>
{props.children}
<View onLayout={measurePopover}>{props.children}</View>
</Popover>
) : (
/*
Expand Down

0 comments on commit c7bdc81

Please sign in to comment.