handling of spacers fixed

This commit is contained in:
Uwe Rathmann 2019-09-16 12:39:16 +02:00
parent 1d04c19999
commit 422c40c397

View File

@ -612,6 +612,7 @@ void QskGridLayoutEngine::setupChain( Qt::Orientation orientation,
constraint = qskSegmentLength( constraints, grid.left(), grid.right() ); constraint = qskSegmentLength( constraints, grid.left(), grid.right() );
auto cell = element.cell( orientation ); auto cell = element.cell( orientation );
if ( element.item() )
cell.hint = layoutHint( element.item(), orientation, constraint ); cell.hint = layoutHint( element.item(), orientation, constraint );
chain.expandCell( grid.top(), cell ); chain.expandCell( grid.top(), cell );