temple found a way to reproduce it reliably on r19839 (almost a22):
- Start multiplayergame and type a long name that would get a linebreak in the middle, for example (ffffffff gggggggg hhhhhhhh)
- Switch between two resolutions, for example with the fullscreen/windowed mode toggle hotkey alt+enter and 1024x768 and 1920x1280
Images at http://imgur.com/a/1Jge8
When setting the size of the observermode playerselection to a relative width, the bug occurs in that dropdown too (see other images in that gallery).
Potential solution:
temple noticed that calling getComputedSize
onTick
fixes the issue.
getComputedSize
calls UpdateCachedSize
.
The GUI objects/manager should be able to subscribe to SDL_WINDOWEVENT_RESIZED
and call UpdateCachedSize
and if the size actually changed, SendEvent(GUIM_RESIZED, "resized");