aboutsummaryrefslogtreecommitdiff
path: root/src/ui/controls/RootControl.cpp
diff options
context:
space:
mode:
authorcrupest <crupest@outlook.com>2022-02-16 23:04:27 +0800
committercrupest <crupest@outlook.com>2022-02-16 23:04:27 +0800
commit9307bd1af7c52aaf9c6d25b598bf3069a63c32a1 (patch)
treea3e485ad60a0114f42dfe3c8d4c64bee87c91ba5 /src/ui/controls/RootControl.cpp
parentf75ab0bd662c73d15057d746347d09bf94a992a6 (diff)
downloadcru-9307bd1af7c52aaf9c6d25b598bf3069a63c32a1.tar.gz
cru-9307bd1af7c52aaf9c6d25b598bf3069a63c32a1.tar.bz2
cru-9307bd1af7c52aaf9c6d25b598bf3069a63c32a1.zip
...
Diffstat (limited to 'src/ui/controls/RootControl.cpp')
-rw-r--r--src/ui/controls/RootControl.cpp3
1 files changed, 3 insertions, 0 deletions
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<host::WindowHost>(this);
+
+ Control::window_host_ = this->window_host_.get();
+
window_host_->SetLayoutPreferToFillWindow(true);
}