X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=dali-toolkit%2Finternal%2Fcontrols%2Fpopup%2Fpopup-impl.cpp;h=d4fcc436611a4393e8943af0a394145027d18e32;hb=7d670fbea93dfffa62535078bd8d84139176e0f0;hp=f7c4188f03382662d49a3a7d885503d7f3a3f621;hpb=2d1ba388f9a941d273e95d729b9662cc1cdad822;p=platform%2Fcore%2Fuifw%2Fdali-toolkit.git diff --git a/dali-toolkit/internal/controls/popup/popup-impl.cpp b/dali-toolkit/internal/controls/popup/popup-impl.cpp index f7c4188..d4fcc43 100755 --- a/dali-toolkit/internal/controls/popup/popup-impl.cpp +++ b/dali-toolkit/internal/controls/popup/popup-impl.cpp @@ -35,6 +35,7 @@ // INTERNAL INCLUDES #include #include +#include #include #include #include @@ -128,10 +129,10 @@ void Popup::OnInitialize() // Create Layer mLayer = Layer::New(); mLayer.SetName( "POPUP_LAYER" ); + mLayer.SetDepthTestDisabled( true ); mLayer.SetParentOrigin(ParentOrigin::CENTER); mLayer.SetAnchorPoint(AnchorPoint::CENTER); mLayer.SetResizePolicy( ResizePolicy::FILL_TO_PARENT, Dimension::ALL_DIMENSIONS ); - mLayer.SetDrawMode( DrawMode::OVERLAY ); // Any content after this point which is added to Self() will be reparented to // mContent. @@ -223,6 +224,11 @@ void Popup::SetBackgroundImage( Actor image ) mBackgroundImage.SetAnchorPoint( AnchorPoint::CENTER ); mBackgroundImage.SetParentOrigin( ParentOrigin::CENTER ); + if ( ImageActor imageActor = DownCast< ImageActor >( image ) ) + { + imageActor.SetSortModifier( BACKGROUND_DEPTH_INDEX ); + } + Vector3 border( mPopupStyle->backgroundOuterBorder.x, mPopupStyle->backgroundOuterBorder.z, 0.0f ); mBackgroundImage.SetSizeModeFactor( border ); @@ -243,6 +249,11 @@ void Popup::SetButtonAreaImage( Actor image ) // Adds new area image to the dialog. mButtonAreaImage = image; + if ( ImageActor imageActor = DownCast< ImageActor >( image ) ) + { + imageActor.SetSortModifier( BACKGROUND_DEPTH_INDEX + 1 ); + } + // OnDialogTouched only consume the event. It prevents the touch event to be caught by the backing. mButtonAreaImage.TouchedSignal().Connect( this, &Popup::OnDialogTouched ); @@ -416,7 +427,7 @@ void Popup::CreateBacking() { mBacking = Dali::Toolkit::CreateSolidColorActor( mPopupStyle->backingColor ); mBacking.SetName( "POPUP_BACKING" ); - + mBacking.SetSortModifier( BACKGROUND_DEPTH_INDEX - 1 ); mBacking.SetResizePolicy( ResizePolicy::FILL_TO_PARENT, Dimension::ALL_DIMENSIONS ); mBacking.SetSensitive(true);