Skip to content

Commit c7bdc81

Browse files
Merge pull request #24542 from waterim/feat-21809-The-popup-menu-overlaps
The popup menu overlaps the + icon on room
2 parents 6ce9f55 + 9520803 commit c7bdc81

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/components/PopoverWithMeasuredContent.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -131,15 +131,15 @@ function PopoverWithMeasuredContent(props) {
131131
const verticalShift = computeVerticalShift(adjustedAnchorPosition.top, popoverHeight, windowHeight);
132132
const shiftedAnchorPosition = {
133133
left: adjustedAnchorPosition.left + horizontalShift,
134-
top: adjustedAnchorPosition.top + verticalShift,
134+
bottom: windowHeight - (adjustedAnchorPosition.top + popoverHeight) - verticalShift,
135135
};
136136
return isContentMeasured ? (
137137
<Popover
138138
// eslint-disable-next-line react/jsx-props-no-spreading
139139
{...props}
140140
anchorPosition={shiftedAnchorPosition}
141141
>
142-
{props.children}
142+
<View onLayout={measurePopover}>{props.children}</View>
143143
</Popover>
144144
) : (
145145
/*

0 commit comments

Comments
 (0)