Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Popup subwindows created by MenuButtons not scaling relative to parent window #69749

Open
MACMAN2003 opened this issue Dec 8, 2022 · 2 comments

Comments

@MACMAN2003
Copy link

MACMAN2003 commented Dec 8, 2022


Bugsquad note: This issue has been confirmed several times already. No need to confirm it further.


Godot version

4.0.beta3.mono

System information

Windows 10, Vulkan, Nvidia RTX 2080 TI

Issue description

When "Embed Subwindows" is set to false in the project settings, popup windows made by MenuButtons don't get placed/scaled relative to the "parent" window

unscaled parent window

unscaled parent window^

the popup window is scaled correctly when the parent window is not scaled at all.

scaled parent window

scaled parent window^

and when maximized, the popup window stays the same size (and even in the same place) making it hard to read on high-DPI devices

This is easily fixed by setting "Embed Subwindows" to true in the project settings, but i want to also have a file dialog window that's not embedded

Steps to reproduce

  • make a new project
  • go to the project settings
  • set the window width and height to 1920 and 1080
  • set embed subwindows to false
  • set the stretch mode to "viewport" or "canvas items"
  • make a new scene
  • make a Control node
  • make a Container node as a child of the control node
  • make a MenuButton node as a child of the container node
  • add an item to the menuButton node
  • run the project
  • resize the window
  • click on the MenuButton
    or
  • open the reproduction project
  • run the project
  • resize the window
  • click on the "click for menu" button

Minimal reproduction project

subwindows.zip

@Sauermann
Copy link
Contributor

Sauermann commented Dec 8, 2022

Can confirm on non-mono-build v4.0.beta.custom_build [a7937fe]
related to #69171 which addresses a similar problem for OptionButton.

@KoB-Kirito
Copy link

Tooltip popups are also affected.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Todo
Development

No branches or pull requests

6 participants