Skip to content

[3.x] Fix PopupMenu's automatic max height - #77691

Merged
akien-mga merged 1 commit into
godotengine:3.xfrom
rsubtil:fix_popupmenu_auto_height
Jun 7, 2023
Merged

akien-mga merged 1 commit into
godotengine:3.xfrom
rsubtil:fix_popupmenu_auto_height

Conversation

@rsubtil

@rsubtil rsubtil commented May 31, 2023

Copy link
Copy Markdown
Member

Fixes #76289.

PopupMenus now have an implicit maximum height set to the current window height, mimicking the current behavior on 4.0.

image

@rsubtil
rsubtil requested a review from a team as a code owner May 31, 2023 10:00
@Calinou Calinou added bug regression topic:gui cherrypick:3.5 Considered for cherry-picking into a future 3.5.x release labels May 31, 2023
@Calinou Calinou added this to the 3.6 milestone May 31, 2023
@kleonc kleonc linked an issue May 31, 2023 that may be closed by this pull request
@akien-mga akien-mga changed the title Fix PopupMenu's automatic max height [3.x] Fix PopupMenu's automatic max height Jun 7, 2023
@akien-mga
akien-mga merged commit b15f7c1 into godotengine:3.x Jun 7, 2023
@akien-mga

Copy link
Copy Markdown
Member

Thanks!

@Poobslag

Poobslag commented Oct 10, 2024

Copy link
Copy Markdown

This regression seems to introduce clipping in my UI, and I'm not sure how to rectify it. Here is my PopupMenu in Godot 3.6:

373514650-12cb7c32-742a-4030-936e-27a639c2160d

Here is the same PopupMenu in Godot 3.5.3:

373740356-21c1aafe-68f2-4e6c-a7ba-92066c7dcd50

It looks like all the buttons have been shifted up within the popup menu, introducing whitespace at the bottom and clipping at the top.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

OptionButton does not allow middle mouse scrolling

4 participants