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

Wrap text in many places where it makes sense #8900

Merged
merged 10 commits into from
Aug 8, 2016

Conversation

unknownbrackets
Copy link
Collaborator

@unknownbrackets unknownbrackets commented Aug 7, 2016

This wraps game titles in the game info screen, savedata info in the pop up, a few paths, etc.

The layout system is changed just slightly to more often specify values for UNSPECIFIED sizes, and more importantly, use that value for FILL_PARENT sizes. This exposed a lot of places where FILL_PARENT was incorrectly being used as WRAP_CONTENT, especially tab holders.

This also fixes #8020 with more of a fix and less of a workaround. It was very related - and sometimes when there's network latency, it's nice for the screen to be async as it was originally.

The first two commits are shared with #8898 as they are used by both.

Notably, this does not ever wrap checkboxes / choices as mentioned in #8136. But it makes it significantly more doable. Went ahead and added this.

-[Unknown]

This still allows skipping a Measure() override, so that it can still
clamp properly.
No reason to wait, just need to keep the buttons hidden.

Intentionally hiding even the buttons below the possibly added buttons, so
we don't accidentally play "button keep away" with the user.
If something has a flexible width, that may affect its final calculated
height.  This allows it to grow in such a situation.
Sometimes the savedata info is long, better to wrap than overflow the box.
If the text is too long, they will scroll down first, then wrap.
@hrydgard
Copy link
Owner

hrydgard commented Aug 8, 2016

That's really nice, thanks for digging into the layout system, I've almost forgotten how it works already.

@hrydgard hrydgard merged commit 0924dbf into hrydgard:master Aug 8, 2016
@unknownbrackets unknownbrackets deleted the ui-text-wrap branch August 8, 2016 22:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Weird problem with the "Create game config" button
3 participants