diff --git a/examples/gallery/main.cpp b/examples/gallery/main.cpp index b447bd71..611c620f 100644 --- a/examples/gallery/main.cpp +++ b/examples/gallery/main.cpp @@ -62,10 +62,6 @@ namespace Drawer( QQuickItem* parent = nullptr ) : QskDrawer( parent ) { -#if 1 - setOverlay( true ); -#endif - auto box = new QskLinearBox( Qt::Vertical, this ); box->setSection( QskAspect::Header ); diff --git a/src/controls/QskDrawer.cpp b/src/controls/QskDrawer.cpp index 8d60f8ce..8965337d 100644 --- a/src/controls/QskDrawer.cpp +++ b/src/controls/QskDrawer.cpp @@ -218,6 +218,7 @@ QskDrawer::QskDrawer( QQuickItem* parentItem ) setZ( 1 ); #endif + setOverlay( true ); setPolishOnResize( true ); setPopupFlag( PopupFlag::CloseOnPressOutside, true );