From 6d8d593b89331debd4f12dc6e01da5f3b0399ed4 Mon Sep 17 00:00:00 2001 From: mix Date: Sun, 18 May 2025 17:05:19 +0100 Subject: [PATCH] Fix scenery window scrollbar thumb size on window expansion --- src/openrct2-ui/windows/Scenery.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/openrct2-ui/windows/Scenery.cpp b/src/openrct2-ui/windows/Scenery.cpp index 50742b8e4b..d22a433dc3 100644 --- a/src/openrct2-ui/windows/Scenery.cpp +++ b/src/openrct2-ui/windows/Scenery.cpp @@ -496,8 +496,9 @@ namespace OpenRCT2::Ui::Windows if (height < min_height) { height = min_height; - Invalidate(); + OnPrepareDraw(); ContentUpdateScroll(); + Invalidate(); } } } @@ -517,6 +518,7 @@ namespace OpenRCT2::Ui::Windows { Invalidate(); height = max_height; + OnPrepareDraw(); ContentUpdateScroll(); }