aboutsummaryrefslogtreecommitdiff
path: root/src/ui/controls
diff options
context:
space:
mode:
authorcrupest <crupest@outlook.com>2019-03-20 17:31:22 +0800
committercrupest <crupest@outlook.com>2019-03-20 17:31:22 +0800
commit62080f78c900aa41e456aa37a1825310121de881 (patch)
tree531bac647b55ac084fc18f3037f988540d251dcb /src/ui/controls
parent1e3cad155a234d2e3e9b6aca650d4d1c4c9e8d4e (diff)
downloadcru-62080f78c900aa41e456aa37a1825310121de881.tar.gz
cru-62080f78c900aa41e456aa37a1825310121de881.tar.bz2
cru-62080f78c900aa41e456aa37a1825310121de881.zip
...
Diffstat (limited to 'src/ui/controls')
-rw-r--r--src/ui/controls/linear_layout.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/ui/controls/linear_layout.cpp b/src/ui/controls/linear_layout.cpp
index d3fdc9b5..c3de7ca3 100644
--- a/src/ui/controls/linear_layout.cpp
+++ b/src/ui/controls/linear_layout.cpp
@@ -27,7 +27,7 @@ namespace cru::ui::controls
// First measure Content and Exactly and count Stretch.
if (orientation_ == Orientation::Horizontal)
- for(auto control: GetInternalChildren())
+ for(auto control: GetChildren())
{
const auto mode = control->GetLayoutParams()->width.mode;
if (mode == MeasureMode::Content || mode == MeasureMode::Exactly)
@@ -42,7 +42,7 @@ namespace cru::ui::controls
stretch_control_list.push_back(control);
}
else
- for(auto control: GetInternalChildren())
+ for(auto control: GetChildren())
{
const auto mode = control->GetLayoutParams()->height.mode;
if (mode == MeasureMode::Content || mode == MeasureMode::Exactly)
@@ -82,7 +82,7 @@ namespace cru::ui::controls
if (orientation_ == Orientation::Horizontal)
{
- for (auto control : GetInternalChildren())
+ for (auto control : GetChildren())
{
if (control->GetLayoutParams()->height.mode == MeasureMode::Stretch)
{
@@ -93,7 +93,7 @@ namespace cru::ui::controls
}
else
{
- for (auto control : GetInternalChildren())
+ for (auto control : GetChildren())
{
if (control->GetLayoutParams()->width.mode == MeasureMode::Stretch)
{
@@ -110,7 +110,7 @@ namespace cru::ui::controls
void LinearLayout::OnLayoutContent(const Rect& rect, const AdditionalLayoutInfo& additional_info)
{
float current_main_side_anchor = 0;
- for(auto control: GetInternalChildren())
+ for(auto control: GetChildren())
{
const auto layout_params = control->GetLayoutParams();
const auto size = control->GetDesiredSize();