Facepunch / sbox-issues

178 stars 12 forks source link

Certain UI elements fail to resize properly after changing window size #6911

Open trundlr opened 3 weeks ago

trundlr commented 3 weeks ago

Describe the bug

After changing the window size (such as maximizing a game, or updating the size of your editor window), the UI should resize accordingly. On some elements, this does not happen.

https://github.com/user-attachments/assets/be5442b2-1162-452e-8f23-3c76e41cc4c3

To Reproduce

  1. Open menu
  2. Resize window
  3. Some elements are not resized until they are updating again.

Expected behavior

All elements resize properly

Media/Files

No response

Additional context

No response

bub-bl commented 2 weeks ago

There is the same problem when calculating the size of an element from the code at runtime, i dont know why