extending the clip rectangle by the padding of the tabbar
This commit is contained in:
parent
9ab254ae5b
commit
d1652bda82
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user