X-Git-Url: http://review.tizen.org/git/?p=platform%2Fcore%2Fuifw%2Fdali-toolkit.git;a=blobdiff_plain;f=dali-toolkit%2Fpublic-api%2Fcontrols%2Fcontrol-impl.cpp;h=a3460055754e29587ac35cec77c4c23932bd3226;hp=74eabcb3daf520dced5b24f4f0793647ffdd2106;hb=038597cefeb2d2d3632f8940af450ef44c0c32dc;hpb=45e81ef4cb2704ff4266e5b0c88630d33f7dee1c diff --git a/dali-toolkit/public-api/controls/control-impl.cpp b/dali-toolkit/public-api/controls/control-impl.cpp index 74eabcb..a346005 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 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 mode works) - Self().Insert( 0, actor ); + // The actor does not need to be inserted to guarantee order. + Self().Add( actor ); mImpl->mAddRemoveBackgroundChild = false; }