diff options
author | crupest <crupest@outlook.com> | 2018-10-05 00:50:38 +0800 |
---|---|---|
committer | crupest <crupest@outlook.com> | 2018-10-05 00:50:38 +0800 |
commit | c5384d496e9ed429ca2baa3ca5e586ff255235eb (patch) | |
tree | be2b26a42dc9fde97379f98f035113e08e0bc331 /src/ui/controls/linear_layout.cpp | |
parent | 4312df1a13b182ed3f00838b5300a8f848f6c2fa (diff) | |
download | cru-c5384d496e9ed429ca2baa3ca5e586ff255235eb.tar.gz cru-c5384d496e9ed429ca2baa3ca5e586ff255235eb.tar.bz2 cru-c5384d496e9ed429ca2baa3ca5e586ff255235eb.zip |
Fix several headache bugs.
Diffstat (limited to 'src/ui/controls/linear_layout.cpp')
-rw-r--r-- | src/ui/controls/linear_layout.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ui/controls/linear_layout.cpp b/src/ui/controls/linear_layout.cpp index 681ed087..7921745a 100644 --- a/src/ui/controls/linear_layout.cpp +++ b/src/ui/controls/linear_layout.cpp @@ -100,7 +100,7 @@ namespace cru::ui::controls ForeachChild([this, ¤t_main_side_anchor, rect](Control* control) { const auto layout_params = control->GetLayoutParams(); - const auto size = control->GetSize(); + const auto size = control->GetDesiredSize(); const auto alignment = orientation_ == Orientation::Horizontal ? layout_params->height.alignment : layout_params->width.alignment; auto&& calculate_secondary_side_anchor = [alignment](const float layout_length, const float control_length) -> float |