diff options
author | crupest <crupest@outlook.com> | 2018-09-21 23:36:11 +0800 |
---|---|---|
committer | crupest <crupest@outlook.com> | 2018-09-21 23:36:11 +0800 |
commit | 7abc054f1d33eeb72d665008083b82630781f6e0 (patch) | |
tree | c4175355b63d7a83c970ddecb41f8258b603280d /CruUI/main.cpp | |
parent | f9d3795e6dbb33fa5ffc0cb6e990462c4dd4974c (diff) | |
download | cru-7abc054f1d33eeb72d665008083b82630781f6e0.tar.gz cru-7abc054f1d33eeb72d665008083b82630781f6e0.tar.bz2 cru-7abc054f1d33eeb72d665008083b82630781f6e0.zip |
Change the default layout pattern of control.
Diffstat (limited to 'CruUI/main.cpp')
-rw-r--r-- | CruUI/main.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/CruUI/main.cpp b/CruUI/main.cpp index 90743e81..65e63af9 100644 --- a/CruUI/main.cpp +++ b/CruUI/main.cpp @@ -74,7 +74,7 @@ int APIENTRY wWinMain( const auto layout = LinearLayout::Create(); - layout->GetLayoutParams()->width.mode = MeasureMode::Stretch; + layout->GetLayoutParams()->width = LayoutLength::Exactly(500); layout->mouse_click_event.AddHandler([layout](cru::ui::events::MouseButtonEventArgs& args) { |