From 9307bd1af7c52aaf9c6d25b598bf3069a63c32a1 Mon Sep 17 00:00:00 2001 From: crupest Date: Wed, 16 Feb 2022 23:04:27 +0800 Subject: ... --- src/ui/controls/RootControl.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/ui/controls/RootControl.cpp') diff --git a/src/ui/controls/RootControl.cpp b/src/ui/controls/RootControl.cpp index 07647024..609223a1 100644 --- a/src/ui/controls/RootControl.cpp +++ b/src/ui/controls/RootControl.cpp @@ -15,6 +15,9 @@ RootControl::RootControl(Control* attached_control) GetContainerRenderObject()->SetDefaultHorizontalAlignment(Alignment::Stretch); GetContainerRenderObject()->SetDefaultVertialAlignment(Alignment::Stretch); window_host_ = std::make_unique(this); + + Control::window_host_ = this->window_host_.get(); + window_host_->SetLayoutPreferToFillWindow(true); } -- cgit v1.2.3