Skip to content

Commit fc006fc

Browse files
shawnbortonclaude
andcommitted
Clamp popover menu maxHeight to not go below POPOVER_MENU_MAX_HEIGHT
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent c487e17 commit fc006fc

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/components/PopoverMenu.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -556,7 +556,7 @@ function BasePopoverMenu({
556556
const stylesArray: ViewStyle[] = [StyleSheet.flatten(styles.createMenuContainer), {width: variables.compactPopoverMenuWidth}, styles.pv2];
557557

558558
if (shouldUseScrollView && shouldEnableMaxHeight && !isInLandscapeMode) {
559-
stylesArray.push({maxHeight: windowHeight - variables.compactPopoverMenuVerticalMargin});
559+
stylesArray.push({maxHeight: Math.max(windowHeight - variables.compactPopoverMenuVerticalMargin, CONST.POPOVER_MENU_MAX_HEIGHT)});
560560
}
561561

562562
return stylesArray;

0 commit comments

Comments
 (0)