Calculate available size before perItemSize
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=723274
This commit is contained in:
parent
192ba4bad3
commit
b5fa2a0936
@ -396,12 +396,11 @@ void BoxLayout::setGeometry(const QRectF& geo)
|
||||
else
|
||||
expansionSpace[i] = 0;
|
||||
|
||||
available -= sizes[i];
|
||||
// adjust the per-item size if the space was over or under used
|
||||
if ( sizes[i] != perItemSize && i != sizes.count()-1 ) {
|
||||
perItemSize = available / (sizes.count()-i-1);
|
||||
}
|
||||
|
||||
available -= sizes[i];
|
||||
}
|
||||
|
||||
// distribute out any remaining space to items which can still expand
|
||||
|
Loading…
Reference in New Issue
Block a user