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 gui overflow in Android editor #101234

Merged
merged 1 commit into from
Jan 14, 2025

Conversation

syntaxerror247
Copy link
Member

This PR addresses the Android editor gui overflow issue caused by the packed bottom bar of the Animation Editor. The problem occurs when the bottom bar's content exceeds the available screen width, resulting in the interface extending off-screen.

It replaces the existing HBoxContainer with HFlowContainer to allow it to wrap when there isn't enough horizontal space.

Closes #100688


bottom_hb->add_spacer();
bottom_hf->add_child(memnew(Control)); // Add spacer.
Copy link
Member

Choose a reason for hiding this comment

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

Is that sufficient to get the behavior of a "spacer" like in BoxContainer?

Copy link
Member Author

@syntaxerror247 syntaxerror247 Jan 7, 2025

Choose a reason for hiding this comment

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

Sorry! I didn't realised add_spacer() also sets h_size_flags to SIZE_EXPAND_FILL. I have updated the code.
However, I think we should remove this spacer altogether.

This is without spacer, it leaves space in right.
image

This is with spacer (after i fixed this to get behaviour of BoxContainer)
image

With spacer it looks odd to have space in left.

@fire
Copy link
Member

fire commented Jan 10, 2025

It looks ok but I don't have a small android screen to test.

@akien-mga akien-mga merged commit 7a99e5e into godotengine:master Jan 14, 2025
20 checks passed
@akien-mga
Copy link
Member

Thanks!

@syntaxerror247 syntaxerror247 deleted the out-of-screen branch January 14, 2025 13:41
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.

[4.4.dev7] Android Editor: Godot GUI is out of screen/display then selecting animations
3 participants