avoid invalid rects

This commit is contained in:
Uwe Rathmann 2020-07-03 13:50:12 +02:00
parent cf7603da37
commit 94b2aec272

View File

@ -207,6 +207,12 @@ QRectF QskScrollViewSkinlet::viewportRect(
vr.setHeight( vr.height() - r.height() - spacing );
}
if ( vr.width() < 0.0 )
vr.setWidth( 0.0 );
if ( vr.height() < 0.0 )
vr.setHeight( 0.0 );
return vr;
}