0ad/source/gui/ObjectTypes
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
..
CButton.cpp Compute actual size of GUI objects lazily 2026-04-12 00:17:02 +02:00
CButton.h Compute actual size of GUI objects lazily 2026-04-12 00:17:02 +02:00
CChart.cpp Compute actual size of GUI objects lazily 2026-04-12 00:17:02 +02:00
CChart.h Compute actual size of GUI objects lazily 2026-04-12 00:17:02 +02:00
CCheckBox.cpp Compute actual size of GUI objects lazily 2026-04-12 00:17:02 +02:00
CCheckBox.h Remove default dtors of IGUIObject derived classes 2025-08-11 18:38:01 +02:00
CDropDown.cpp Change the return type of event-handler 2026-06-19 20:53:52 +02:00
CDropDown.h Change the return type of event-handler 2026-06-19 20:53:52 +02:00
CGUIDummyObject.h Fix headers for gui/ObjectTypes 2025-06-30 20:38:16 +02:00
CHotkeyPicker.cpp Move Script* classes to Script namespace 2026-06-20 17:43:00 +02:00
CHotkeyPicker.h Change the return type of event-handler 2026-06-19 20:53:52 +02:00
CImage.cpp Compute actual size of GUI objects lazily 2026-04-12 00:17:02 +02:00
CImage.h Remove default dtors of IGUIObject derived classes 2025-08-11 18:38:01 +02:00
CInput.cpp Change the return type of event-handler 2026-06-19 20:53:52 +02:00
CInput.h Change the return type of event-handler 2026-06-19 20:53:52 +02:00
CList.cpp Change the return type of event-handler 2026-06-19 20:53:52 +02:00
CList.h Change the return type of event-handler 2026-06-19 20:53:52 +02:00
CMiniMap.cpp Prevent segfault in CMiniMap::Tick 2026-07-22 23:51:49 +02:00
CMiniMap.h Only render the minimap texture if it'll be displayed 2026-03-03 11:25:52 +01:00
COList.cpp Compute actual size of GUI objects lazily 2026-04-12 00:17:02 +02:00
COList.h Fix headers for gui/ObjectTypes 2025-06-30 20:38:16 +02:00
CProgressBar.cpp Compute actual size of GUI objects lazily 2026-04-12 00:17:02 +02:00
CProgressBar.h Remove default dtors of IGUIObject derived classes 2025-08-11 18:38:01 +02:00
CRadioButton.cpp Fix headers for gui/ObjectTypes 2025-06-30 20:38:16 +02:00
CRadioButton.h Fix headers for gui/ObjectTypes 2025-06-30 20:38:16 +02:00
CScrollPanel.cpp Compute actual size of GUI objects lazily 2026-04-12 00:17:02 +02:00
CScrollPanel.h Compute actual size of GUI objects lazily 2026-04-12 00:17:02 +02:00
CSlider.cpp Compute actual size of GUI objects lazily 2026-04-12 00:17:02 +02:00
CSlider.h Remove default dtors of IGUIObject derived classes 2025-08-11 18:38:01 +02:00
CText.cpp Fix brief text misalignment in GUI text objects 2026-07-22 23:51:49 +02:00
CText.h Compute actual size of GUI objects lazily 2026-04-12 00:17:02 +02:00
CTooltip.cpp Compute actual size of GUI objects lazily 2026-04-12 00:17:02 +02:00
CTooltip.h Compute actual size of GUI objects lazily 2026-04-12 00:17:02 +02:00