Changes between Initial Version and Version 15 of Ticket #3571


Ignore:
Timestamp:
Jun 28, 2017, 9:27:03 PM (7 years ago)
Author:
elexis
Comment:

temple found a way to reproduce it reliably on r19839 (almost a22):

  1. Start multiplayergame and type a long name that would get a linebreak in the middle, for example (ffffffff gggggggg hhhhhhhh)
  2. 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");

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #3571

    • Property Keywords patch added
    • Property Summary GUI Dropdown list breaks on screen resize with scrollbars=false[PATCH] GUI Dropdown list breaks on screen resize with scrollbars=false