aboutsummaryrefslogtreecommitdiff
path: root/src/ui/controls
diff options
context:
space:
mode:
authorcrupest <crupest@outlook.com>2022-01-29 22:19:36 +0800
committercrupest <crupest@outlook.com>2022-01-29 22:19:36 +0800
commit43fe5dfe001f25870788742333d141f406b07364 (patch)
treeaa2cf8825cca0bcab5f7e72c37801cf35de857b3 /src/ui/controls
parent592f3f3f25f00232234399f4c5f51318a3fa49d2 (diff)
downloadcru-43fe5dfe001f25870788742333d141f406b07364.tar.gz
cru-43fe5dfe001f25870788742333d141f406b07364.tar.bz2
cru-43fe5dfe001f25870788742333d141f406b07364.zip
...
Diffstat (limited to 'src/ui/controls')
-rw-r--r--src/ui/controls/RootControl.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/ui/controls/RootControl.cpp b/src/ui/controls/RootControl.cpp
index a7366155..dbf037fc 100644
--- a/src/ui/controls/RootControl.cpp
+++ b/src/ui/controls/RootControl.cpp
@@ -20,6 +20,7 @@ RootControl::RootControl(Control* attached_control)
render_object_->SetDefaultVertialAlignment(Alignment::Stretch);
SetContainerRenderObject(render_object_.get());
window_host_ = std::make_unique<host::WindowHost>(this);
+ window_host_->SetLayoutPreferToFillWindow(true);
}
RootControl::~RootControl() {}