Files
0ad/source/gui
Vantha 931c132b1b Fix brief text misalignment in GUI text objects
The issue was introduced by 8a2a450686.
It affected GUI text objects (CText) with `scrollbar` set to true; when
their caption was long enough for a scrollbar to be visible and then the
size changed (got bigger) so that no scrollbar was needed anymore, then
for a single frame the text was completely misaligned. This happened
because in `CText::Draw` the scrollbar wasn't updated yet, so the newly
added `GetScrollBar(0).IsVisible()` check still returned true, even
though it wouldn't end up being rendered anyway -- it was updated in
`IGUITextOwner::DrawText` eventually.

This happened to the tutorial info panel in the starting economy
walkthrough, for example. Note: in that case the scrollbar wasn't ever
drawn, but it was temporarily set visible within a frame by the JS
object resizing logic.
2026-07-22 23:51:49 +02:00
..
2026-07-08 11:35:46 +02:00
2025-07-02 13:20:13 +02:00
2026-07-08 09:51:17 +02:00
2026-07-08 11:35:46 +02:00
2025-07-02 13:20:13 +02:00
2025-07-05 12:42:34 +02:00
2025-07-02 13:20:13 +02:00
2025-07-02 13:20:13 +02:00
2025-07-02 13:20:13 +02:00
2025-07-02 13:20:13 +02:00
2025-07-02 13:20:13 +02:00
2025-07-02 13:20:13 +02:00