mirror of https://github.com/buggins/dlangui.git
don't shrink non-fill-parent items in linear layout
This commit is contained in:
parent
d709a26434
commit
24a033f1d9
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue