avoid invalid rects
This commit is contained in:
parent
cf7603da37
commit
94b2aec272
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user