From d1652bda829b9c29fe35318eec48a46c3a8c57e0 Mon Sep 17 00:00:00 2001 From: Uwe Rathmann Date: Tue, 11 Aug 2020 13:08:02 +0200 Subject: [PATCH] extending the clip rectangle by the padding of the tabbar --- src/controls/QskTabBar.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/controls/QskTabBar.cpp b/src/controls/QskTabBar.cpp index 39727568..5c498f34 100644 --- a/src/controls/QskTabBar.cpp +++ b/src/controls/QskTabBar.cpp @@ -137,6 +137,9 @@ namespace { auto r = Inherited::clipRect(); + if ( auto control = qskControlCast( parentItem() ) ) + r += control->marginsHint( QskTabBar::Panel | QskAspect::Padding ); + /* Often the current tab button grows beyond the bounding rectangle of the tab bar, so that it looks like being on top of the tab page @@ -154,6 +157,7 @@ namespace r.setLeft( r.left() - 0.5 * expanded ); r.setWidth( expanded ); } + return r; }