X-Git-Url: http://review.tizen.org/git/?p=platform%2Fcore%2Fuifw%2Fdali-toolkit.git;a=blobdiff_plain;f=dali-toolkit%2Finternal%2Fcontrols%2Fpopup%2Fpopup-impl.cpp;h=df6a1b2c2b31e6167b09309e5dd5a27254ae6160;hp=75772202446ecf244a63819f31ae9faf9267a7e0;hb=72d72ebbbf093937bfb04108ce4dd491a458721b;hpb=fdfb93fa4b0c2d3093a81dfe4ad323f4460cb6ae diff --git a/dali-toolkit/internal/controls/popup/popup-impl.cpp b/dali-toolkit/internal/controls/popup/popup-impl.cpp index 7577220..df6a1b2 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.SetDepthIndex( 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.SetDepthIndex( 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.SetDepthIndex( BACKGROUND_DEPTH_INDEX - 1 ); mBacking.SetResizePolicy( ResizePolicy::FILL_TO_PARENT, Dimension::ALL_DIMENSIONS ); mBacking.SetSensitive(true);