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
pull/661/head
Jonathan G Rennison 3 months ago
parent 2aa574a48f
commit 351c607dad

@ -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();
}
/**

Loading…
Cancel
Save