From cc31086d10fe04dfbb5c4fd458af9d5079c5220c Mon Sep 17 00:00:00 2001 From: Peter Hartmann Date: Wed, 15 Jun 2022 15:20:11 +0200 Subject: [PATCH] Popups: Remove clip when showing the popup Otherwise we would clip the shadow, e.g. in the Material case. --- src/controls/QskPopupSkinlet.cpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/controls/QskPopupSkinlet.cpp b/src/controls/QskPopupSkinlet.cpp index 371371f7..efed2b09 100644 --- a/src/controls/QskPopupSkinlet.cpp +++ b/src/controls/QskPopupSkinlet.cpp @@ -149,8 +149,15 @@ QSGNode* QskPopupSkinlet::updateExtraNode( const QskPopup* popup, QSGNode* node auto rootNode = QskSGNode::ensureNode< RootNode >( node ); const auto faderProgress = popup->metric( popup->faderAspect() ); + if ( faderProgress > 0.0 && faderProgress < 1.0 ) + { rootNode->setClipRect( cr ); + } + else if( faderProgress <= 0.0 ) + { + rootNode->setClipRect( {} ); + } rootNode->setTranslation( 0.0, -faderProgress * cr.height() );