X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;ds=sidebyside;f=dali-toolkit%2Fpublic-api%2Fcontrols%2Fcontrol-impl.cpp;h=b4b9cdb2fa4f8a3badf1654a88f3d9ed4fc3f208;hb=5cc78df05271786e4c1c18a0eaab32e05612df9d;hp=643477264042450f53901bee2eb99e103485b376;hpb=ec4cd25a0466c6580d4a8f3fbba07340dfa2de1d;p=platform%2Fcore%2Fuifw%2Fdali-toolkit.git diff --git a/dali-toolkit/public-api/controls/control-impl.cpp b/dali-toolkit/public-api/controls/control-impl.cpp index 6434772..b4b9cdb 100644 --- a/dali-toolkit/public-api/controls/control-impl.cpp +++ b/dali-toolkit/public-api/controls/control-impl.cpp @@ -584,8 +584,8 @@ void Control::SetBackgroundColor( const Vector4& color ) Actor actor = CreateBackground(Self(), color ); background.actor = actor; mImpl->mAddRemoveBackgroundChild = true; - // use insert to guarantee its the first child (so that OVERLAY_2D mode works) - Self().Insert( 0, actor ); + // The actor does not need to be inserted to guarantee order. + Self().Add( actor ); mImpl->mAddRemoveBackgroundChild = false; } @@ -619,8 +619,8 @@ void Control::SetBackgroundImage( Image image ) // Set the background actor before adding so that we do not inform derived classes background.actor = actor; mImpl->mAddRemoveBackgroundChild = true; - // use insert to guarantee its the first child (so that OVERLAY_2D mode works) - Self().Insert( 0, actor ); + // The actor does not need to be inserted to guarantee order. + Self().Add( actor ); mImpl->mAddRemoveBackgroundChild = false; } @@ -875,7 +875,7 @@ void Control::Initialize() styleManager.StyleChangeSignal().Connect( this, &Control::OnStyleChange ); // Apply the current style - GetImpl( styleManager ).ApplyThemeStyle( Toolkit::Control( GetOwner() ) ); + GetImpl( styleManager ).ApplyThemeStyleAtInit( Toolkit::Control( GetOwner() ) ); } }