From 61aee0f19dc8f0505ec17957e48b9f6058201880 Mon Sep 17 00:00:00 2001 From: Anton Obzhirov Date: Mon, 18 Jun 2018 17:10:58 +0100 Subject: [PATCH] Fix request layout propagation in layout tree Change-Id: I5af25ad0e7699659cb1329c7685c891873200eed --- dali-toolkit/devel-api/layouting/layout-group-impl.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/dali-toolkit/devel-api/layouting/layout-group-impl.cpp b/dali-toolkit/devel-api/layouting/layout-group-impl.cpp index 1f643cc..fd30091 100644 --- a/dali-toolkit/devel-api/layouting/layout-group-impl.cpp +++ b/dali-toolkit/devel-api/layouting/layout-group-impl.cpp @@ -184,7 +184,7 @@ void LayoutGroup::DoRegisterChildProperties( const std::string& containerType ) void LayoutGroup::OnSetChildProperties( Handle& handle, Property::Index index, Property::Value value ) { - DALI_LOG_INFO( gLogFilter, Debug::Verbose, "LayoutGroup::OnSetChildProperties\n"); + DALI_LOG_INFO( gLogFilter, Debug::Verbose, "LayoutGroup::OnSetChildProperties property(%s)\n", handle.GetPropertyName(index).c_str()); if ( ( ( index >= CHILD_PROPERTY_REGISTRATION_START_INDEX ) && ( index <= CHILD_PROPERTY_REGISTRATION_MAX_INDEX ) ) @@ -192,12 +192,11 @@ void LayoutGroup::OnSetChildProperties( Handle& handle, Property::Index index, P ( index == Toolkit::Control::Property::MARGIN || index == Toolkit::Control::Property::PADDING ) ) { // If any child properties are set, must perform relayout - RequestLayout(); for( auto&& child : mImpl->mChildren ) { if( child.child->GetOwner() == handle ) { - child.child->SetLayoutRequested(); + child.child->RequestLayout(); break; } } -- 2.7.4