openplanet-nl / issues

Issue tracker for Openplanet.
10 stars 0 forks source link

UI Windows wider than needed sometimes #566

Open Vanawy opened 2 months ago

Vanawy commented 2 months ago

Openplanet version: 1.27.2 (2024-10-01) image

Sometimes width fixes itself after switching windows (alt + tab)

Flags I use:

int windowFlags = UI::WindowFlags::NoTitleBar | UI::WindowFlags::NoCollapse 
    | UI::WindowFlags::AlwaysAutoResize | UI::WindowFlags::NoDocking;
if (!UI::IsOverlayShown()) {
    windowFlags |= UI::WindowFlags::NoInputs;
}
UI::Begin("Run History", windowFlags);

Did some testing with Ultimate medals plugin:

  1. Open map with long name
  2. Open map with short name
  3. Now we have empty space on the right

Examples:

My plugin (Run History) image

Ultimate Medals image

codecat commented 2 months ago

What happens if you reset all your UI settings? (see screenshot)

image

Vanawy commented 2 months ago

Is it reversible or should I backup my settings before trying that?

codecat commented 2 months ago

If you want to back it up, you can back up Gui.ini in your OpenplanetNext folder 👍

Vanawy commented 2 months ago

tried with reset - same behaviour, won't resize to smaller width

Vanawy commented 2 months ago

It also affects Grinding Stats, not the best example, but its a liitle bit wider than needed image