don't shrink non-fill-parent items in linear layout

This commit is contained in:
Vadim Lopatin 2015-01-12 14:18:58 +03:00
parent d709a26434
commit 24a033f1d9
1 changed files with 1 additions and 1 deletions

View File

@ -194,7 +194,7 @@ class LayoutItems {
// need resize of some children
needResize = true;
// resize all if need to shrink or only resizable are too small to correct delta
needForceResize = delta < 0 || resizableWeight == 0; // || resizableSize * 2 / 3 < delta; // do we need resize non-FILL_PARENT items?
needForceResize = /*delta < 0 || */ resizableWeight == 0; // || resizableSize * 2 / 3 < delta; // do we need resize non-FILL_PARENT items?
// calculate scale factor: weight / delta * 10000
if (needForceResize && nonresizableSize + resizableSize > 0)
scaleFactor = 10000 * delta / (nonresizableSize + resizableSize);