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; }