layoutRectForWidth fixed

This commit is contained in:
Uwe Rathmann 2019-04-30 09:05:08 +02:00
parent 5453e84022
commit 748bdebc61

View File

@ -233,10 +233,9 @@ void QskSubWindow::updateLayout()
QRectF QskSubWindow::layoutRectForSize( const QSizeF& size ) const
{
QRectF rect = contentsRect();
const qreal top = rect.top() + subControlRect( size, TitleBar ).height();
rect.setTop( top );
QRectF rect;
rect.setSize( size );
rect.setTop( subControlRect( size, TitleBar ).bottom() );
return innerBox( Panel, rect );
}