diff options
author | crupest <crupest@outlook.com> | 2018-09-21 23:20:44 +0800 |
---|---|---|
committer | crupest <crupest@outlook.com> | 2018-09-21 23:20:44 +0800 |
commit | f9d3795e6dbb33fa5ffc0cb6e990462c4dd4974c (patch) | |
tree | d7c7deb89c10944ccbdeafb4dd89ca492e4608b6 /CruUI/ui/control.cpp | |
parent | 82a45e611a2638cff7e3fffc09ba4569ca53a274 (diff) | |
download | cru-f9d3795e6dbb33fa5ffc0cb6e990462c4dd4974c.tar.gz cru-f9d3795e6dbb33fa5ffc0cb6e990462c4dd4974c.tar.bz2 cru-f9d3795e6dbb33fa5ffc0cb6e990462c4dd4974c.zip |
Move alignment property into layout params.
Diffstat (limited to 'CruUI/ui/control.cpp')
-rw-r--r-- | CruUI/ui/control.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/CruUI/ui/control.cpp b/CruUI/ui/control.cpp index 0b19c20b..81543a4d 100644 --- a/CruUI/ui/control.cpp +++ b/CruUI/ui/control.cpp @@ -505,7 +505,7 @@ namespace cru { if (!layout_params->Validate()) throw std::runtime_error("LayoutParams is not valid. Please check it."); - auto&& get_available_length_for_child = [](const MeasureLength& layout_length, const float available_length) -> float + auto&& get_available_length_for_child = [](const LayoutLength& layout_length, const float available_length) -> float { switch (layout_length.mode) { @@ -537,7 +537,7 @@ namespace cru { max_child_size.height = size.height; }); - auto&& calculate_final_length = [](const MeasureLength& layout_length, const float length_for_children, const float max_child_length) -> float + auto&& calculate_final_length = [](const LayoutLength& layout_length, const float length_for_children, const float max_child_length) -> float { switch (layout_length.mode) { |