handling initial empty sizes

This commit is contained in:
Uwe Rathmann 2020-06-09 06:56:20 +02:00
parent 02115c8e7d
commit 15777421a2

View File

@ -377,15 +377,21 @@ void QskScrollArea::adjustItem()
if ( m_data->isItemResizable )
{
auto size = viewContentsRect().size();
#if 0
if ( size.isEmpty() )
{
size = QSizeF( 0.0, 0.0 );
}
else
{
/*
For optional scrollbars the available space also depends
on wether the adjustedSize results in scroll bars. For the
moment we ignore this and start with a simplified code.
moment we ignore this and start with a simplified code. TODO ...
*/
#endif
size = qskConstrainedItemSize( item, size );
}
item->setSize( size );
}