From 351c607dadfb0f7deeed359fea4f1bcaf8374b0c Mon Sep 17 00:00:00 2001 From: Jonathan G Rennison Date: Mon, 19 Feb 2024 20:58:06 +0000 Subject: [PATCH] Call ProcessScheduledResize from FinishInitNested This is to make sure that OnResize is called at least once before the window is first drawn, to set up scrollbar capacities, etc See: d3c673e2 --- src/window.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/window.cpp b/src/window.cpp index 9a68dabf99..2c036475f4 100644 --- a/src/window.cpp +++ b/src/window.cpp @@ -1871,6 +1871,7 @@ void Window::FinishInitNested(WindowNumber window_number) Point pt = this->OnInitialPosition(this->nested_root->smallest_x, this->nested_root->smallest_y, window_number); this->InitializePositionSize(pt.x, pt.y, this->nested_root->smallest_x, this->nested_root->smallest_y); this->FindWindowPlacementAndResize(this->window_desc->GetDefaultWidth(), this->window_desc->GetDefaultHeight()); + this->ProcessScheduledResize(); } /**