{
LayoutItemPtr childLayout;
Toolkit::Control control = Toolkit::Control::DownCast( child );
- DALI_LOG_INFO( gLogFilter, Debug::Verbose, "LayoutGroup::ChildAddedToOwner(%s)\n", control.GetName().c_str() );
+
+ DALI_LOG_INFO( gLogFilter, Debug::Verbose, "LayoutGroup::ChildAddedToOwner control(%s)\n", control?control.GetName().c_str():"Invalid" );
if( control ) // Can only support adding Controls, not Actors to layout
{
return x==rhs.x && y==rhs.y;
}
+ bool operator!=( const LayoutSize& rhs )
+ {
+ return !( *this==rhs );
+ }
+
union
{
LayoutLength::IntType x;
void LinearLayout::SetCellPadding( LayoutSize size )
{
GetImplementation(*this).SetCellPadding( size );
- GetImplementation(*this).RequestLayout();
}
LayoutSize LinearLayout::GetCellPadding()
{
return GetImplementation(*this).GetCellPadding();
- GetImplementation(*this).RequestLayout();
}
void LinearLayout::SetOrientation( LinearLayout::Orientation orientation )
{
GetImplementation(*this).SetOrientation( orientation );
- GetImplementation(*this).RequestLayout();
}
LinearLayout::Orientation LinearLayout::GetOrientation()
{
return GetImplementation(*this).GetOrientation();
- GetImplementation(*this).RequestLayout();
}
LinearLayout::LinearLayout( Dali::Toolkit::Internal::LinearLayout* object )
YGNodeStyleSetMaxWidth( mRoot, width );
}
- if (heightMeasureSpec.GetMode() == MeasureSpec::Mode::EXACTLY)
+ if ( heightMeasureSpec.GetMode() == MeasureSpec::Mode::EXACTLY )
{
height = heightMeasureSpec.GetSize();
YGNodeStyleSetHeight( mRoot, height );
}
- else if (widthMeasureSpec.GetMode() == MeasureSpec::Mode::AT_MOST)
+ else if ( heightMeasureSpec.GetMode() == MeasureSpec::Mode::AT_MOST )
{
height = heightMeasureSpec.GetSize();
YGNodeStyleSetMaxHeight( mRoot, height );
if( desiredHeight == Toolkit::ChildLayoutData::MATCH_PARENT )
{
- if( innerWidth != YGUndefined)
+ if( innerHeight != YGUndefined)
{
desiredHeight = innerHeight;
}
void LinearLayout::SetCellPadding( LayoutSize size )
{
- mCellPadding = size;
+ if ( mCellPadding != size )
+ {
+ mCellPadding = size;
+ RequestLayout();
+ }
}
LayoutSize LinearLayout::GetCellPadding()
void LinearLayout::SetOrientation( Dali::Toolkit::LinearLayout::Orientation orientation )
{
- mOrientation = orientation;
+ if ( mOrientation != orientation )
+ {
+ mOrientation = orientation;
+ RequestLayout();
+ }
}
Dali::Toolkit::LinearLayout::Orientation LinearLayout::GetOrientation()