extending the clip rectangle by the padding of the tabbar

This commit is contained in:
Uwe Rathmann 2020-08-11 13:08:02 +02:00
parent 9ab254ae5b
commit d1652bda82

View File

@ -137,6 +137,9 @@ namespace
{ {
auto r = Inherited::clipRect(); 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 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 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.setLeft( r.left() - 0.5 * expanded );
r.setWidth( expanded ); r.setWidth( expanded );
} }
return r; return r;
} }