-
- // The size of the control could have changed due to padding being altered, the XXX_SPECIFICATIONs will not have been updated.
- // So GetNaturalSize is called, if the control's natural size includes padding then th size will be updated.
- if ( control )
- {
- auto desiredSize = control.GetNaturalSize(); // Get's child control's size which could include new padding values.
-
- // Check if WIDTH_SPECIFICATION was a size value, if so then get update to child controls's width.
- if ( desiredWidth > 0 )
- {
- desiredWidth = desiredSize.width;
- childOwner.SetProperty( Toolkit::LayoutItem::ChildProperty::WIDTH_SPECIFICATION, LayoutLength::IntType( desiredWidth ) );
- }
-
- // Check if HEIGHT_SPECIFICATION was a size value, if so then get update to child controls's height.
- if ( desiredHeight > 0)
- {
- desiredHeight = desiredSize.height;
- childOwner.SetProperty( Toolkit::LayoutItem::ChildProperty::HEIGHT_SPECIFICATION, LayoutLength::IntType( desiredHeight ) );
- }
- }
-
- DALI_LOG_INFO( gLogFilter, Debug::Verbose, "LayoutGroup::MeasureChild desiredWidth(%d)\n", desiredWidth );
+ DALI_LOG_INFO( gLogFilter, Debug::Verbose, "LayoutGroup::MeasureChild desiredWidth(%d) desiredHeight(%d)\n", desiredWidth, desiredHeight );