Now it is setting in LayoutItem::SetFrame
and clearing in LayoutItem::SetParent, should be swapped.
Change-Id: Ifca2a432d119600fb4ff3a9351469e26d2661a02
void LayoutItem::SetParent( LayoutParent* parent )
{
mImpl->mLayoutParent = parent;
void LayoutItem::SetParent( LayoutParent* parent )
{
mImpl->mLayoutParent = parent;
- if ( parent == nullptr )
- {
- mImpl->ClearPrivateFlag( Impl::PRIVATE_FLAG_FORCE_SET_FRAME );
- }
+ mImpl->SetPrivateFlag( Impl::PRIVATE_FLAG_FORCE_SET_FRAME );
}
LayoutParent* LayoutItem::GetParent()
}
LayoutParent* LayoutItem::GetParent()
DALI_LOG_STREAM( gLayoutFilter, Debug::Verbose, "LayoutItem::SetFrame enter(" << left << ", " << top << ", " << right << ", " << bottom << ")\n" );
DALI_LOG_STREAM( gLayoutFilter, Debug::Verbose, "LayoutItem::SetFrame enter(" << left << ", " << top << ", " << right << ", " << bottom << ")\n" );
- if( mImpl->mLeft != left || mImpl->mRight != right || mImpl->mTop != top || mImpl->mBottom != bottom || !mImpl->GetPrivateFlag( Impl::PRIVATE_FLAG_FORCE_SET_FRAME ) )
+ if( mImpl->mLeft != left || mImpl->mRight != right || mImpl->mTop != top || mImpl->mBottom != bottom || mImpl->GetPrivateFlag( Impl::PRIVATE_FLAG_FORCE_SET_FRAME ) )
mImpl->mRight = right;
mImpl->mBottom = bottom;
mImpl->mRight = right;
mImpl->mBottom = bottom;
- mImpl->SetPrivateFlag( Impl::PRIVATE_FLAG_FORCE_SET_FRAME );
+ mImpl->ClearPrivateFlag( Impl::PRIVATE_FLAG_FORCE_SET_FRAME );
// Reflect up to parent control
// Reflect up to parent control