Popups: Remove clip when showing the popup

Otherwise we would clip the shadow, e.g. in the Material case.
This commit is contained in:
Peter Hartmann 2022-06-15 15:20:11 +02:00
parent 54616a5781
commit cc31086d10
1 changed files with 7 additions and 0 deletions

View File

@ -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() );