forked from mirrors/0ad
Align text as usual if the scrollbar is invisible
Previously, while `scrollbar` was set to true, the text was always vertically aligned to the top, no matter what its `text_valign` was, by the scrolling logic. However, this was done even when the text's caption was so short that no scrollbar was required in the first place (and not rendered). Falling back to the specified `text_valign` value in that case instead seems like the expected behavior. On a few occasions in the GUI, the text was supposed to be aligned to the top in either case, but still set `text_valign` to a different value (for whatever reason), which didn't have any effect previously. But now since it does, the values have to be corrected to specify what is actually desired.
This commit is contained in:
@@ -131,7 +131,7 @@
|
||||
scrollbar_style="ModernScrollBar"
|
||||
textcolor="white"
|
||||
text_align="left"
|
||||
text_valign="center"
|
||||
text_valign="top"
|
||||
sprite="ModernDarkBox"
|
||||
sprite_overlay="ModernDarkBoxGoldBorder"
|
||||
/>
|
||||
|
||||
@@ -9,6 +9,6 @@
|
||||
scroll_bottom="true"
|
||||
textcolor="white"
|
||||
text_align="left"
|
||||
text_valign="center"
|
||||
text_valign="top"
|
||||
/>
|
||||
</styles>
|
||||
|
||||
@@ -135,7 +135,7 @@
|
||||
scroll_bottom="true"
|
||||
textcolor="white"
|
||||
text_align="left"
|
||||
text_valign="center"
|
||||
text_valign="top"
|
||||
sprite="ModernDarkBox"
|
||||
sprite_overlay="ModernDarkBoxGoldBorder"
|
||||
/>
|
||||
|
||||
Reference in New Issue
Block a user