1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-06 06:32:56 +01:00

Fix #20312: Affected windows now update properly

This commit is contained in:
Michael Bernardi
2023-06-06 21:37:03 +02:00
committed by Michael Bernardi
parent a7881a5046
commit 76af75af43
4 changed files with 4 additions and 0 deletions

View File

@@ -665,6 +665,7 @@ private:
y = std::max<int32_t>(y, widget->bottom);
}
height = y + 6;
ResizeFrameWithPage();
}
void OnResize() override

View File

@@ -741,6 +741,7 @@ public:
}
}
ResizeFrameWithPage();
widgets[WIDX_SCENERY_LIST].right = windowWidth - 26;
widgets[WIDX_SCENERY_LIST].bottom = height - 14;

View File

@@ -268,6 +268,7 @@ public:
}
SetWidgetPressed(WIDX_STAFF_LIST_QUICK_FIRE, _quickFireMode);
ResizeFrameWithPage();
widgets[WIDX_STAFF_LIST_LIST].right = width - 4;
widgets[WIDX_STAFF_LIST_LIST].bottom = height - 15;
widgets[WIDX_STAFF_LIST_QUICK_FIRE].left = width - 77;

View File

@@ -379,6 +379,7 @@ public:
_colour_index_2 = -1;
}
ResizeFrameWithPage();
widgets[WIDX_THEMES_LIST].right = width - 4;
widgets[WIDX_THEMES_LIST].bottom = height - 0x0F;