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

Fix project manager display at small window sizes #61211

Merged

Conversation

Calinou
Copy link
Member

@Calinou Calinou commented May 20, 2022

master version of #61210.

  • Don't use minimum size for project order/filter controls. This also allows the filter field to become longer at large window sizes.
  • Hide the loading label instead of changing its opacity. This causes a reflow during loading, but this is preferable to having the UI overflow.
  • Hide the About button on Android as it will spawn a dialog that's too large to be closed on most screens.
  • Hide the language dropdown on Android as it doesn't work correctly.

This allows the project manager to be displayed correctly at much lower window sizes than previously.

This partially addresses #60728. Further changes need to be made to the editor itself to reduce cases of UI elements overlapping (including preventing access to the About dialog within the editor).

@Calinou Calinou added this to the 4.0 milestone May 20, 2022
@Calinou Calinou force-pushed the project-manager-fix-small-window-size branch from 7a58ca4 to 5345b37 Compare May 20, 2022 01:32
@Calinou Calinou force-pushed the project-manager-fix-small-window-size branch from 5345b37 to 35ee814 Compare May 20, 2022 13:00
- Don't use minimum size for project order/filter controls.
  This also allows the filter field to become longer at large
  window sizes.
- Hide the loading label instead of changing its opacity.
  This causes a reflow during loading, but this is preferable to having
  the UI overflow.
- Hide the About button on Android as it will spawn a dialog that's
  too large to be closed on most screens.
- Hide the language dropdown on Android as it doesn't work correctly.

This allows the project manager to be displayed correctly at much
lower window sizes than previously.
@Calinou Calinou force-pushed the project-manager-fix-small-window-size branch from 35ee814 to 9e64f3d Compare May 20, 2022 14:32
Comment on lines +2730 to +2735
#ifdef ANDROID_ENABLED
// The language selection dropdown doesn't work on Android (as the setting isn't saved), see GH-60353.
// Also, the dropdown it spawns is very tall and can't be scrolled without a hardware mouse.
// Hiding the language selection dropdown also leaves more space for the version label to display.
language_btn->hide();
#endif
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should be removed once #60353 is fixed (mentioning it here to get a backreference).

@akien-mga akien-mga merged commit 25ec4b4 into godotengine:master May 20, 2022
@akien-mga
Copy link
Member

Thanks!

@Calinou Calinou deleted the project-manager-fix-small-window-size branch May 20, 2022 15:06
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.

3 participants