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
This commit is contained in:
Jonathan G Rennison
2024-02-19 20:58:06 +00:00
parent 2aa574a48f
commit 351c607dad

View File

@@ -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); 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->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->FindWindowPlacementAndResize(this->window_desc->GetDefaultWidth(), this->window_desc->GetDefaultHeight());
this->ProcessScheduledResize();
} }
/** /**