This commit is contained in:
Uwe Rathmann 2022-06-13 20:35:02 +02:00
commit e554a125b2

View File

@ -323,8 +323,10 @@ QRectF QskMenuSkinlet::sampleRect(
{ {
auto graphicRect = r; auto graphicRect = r;
graphicRect.setWidth( graphicWidth ); graphicRect.setWidth( graphicWidth );
const auto padding = menu->paddingHint( QskMenu::Graphic );
graphicRect = graphicRect.marginsRemoved( padding );
return QRectF( r.x(), r.y(), graphicWidth, r.height() ); return graphicRect;
} }
else else
{ {