diff options
author | crupest <crupest@outlook.com> | 2022-02-16 23:04:27 +0800 |
---|---|---|
committer | crupest <crupest@outlook.com> | 2022-02-16 23:04:27 +0800 |
commit | 9307bd1af7c52aaf9c6d25b598bf3069a63c32a1 (patch) | |
tree | a3e485ad60a0114f42dfe3c8d4c64bee87c91ba5 /src/ui/controls/RootControl.cpp | |
parent | f75ab0bd662c73d15057d746347d09bf94a992a6 (diff) | |
download | cru-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.cpp | 3 |
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); } |