Closed dfed closed 3 months ago
I have a distribution which is not working as expected. In the following distribution:
applyHorizontalSubviewDistribution { view1 0.fixed view2 }
… the label and iconView end up distributed with what looks like:
label
iconView
applyHorizontalSubviewDistribution { 1.flexible view1 1.flexible // wrong! view2 1.flexible }
I can fix the distribution by adding explicit flexible spacers:
applyHorizontalSubviewDistribution { 1.flexible view1 0.fixed view2 1.flexible }
The original distribution works as expected if the central fixed spacer is non-zero. Discovered on master commit 420dc31e915e357fafbfe6d1f7147e2d50ed3b8f – I have not checked other versions.
master
420dc31e915e357fafbfe6d1f7147e2d50ed3b8f
I have a distribution which is not working as expected. In the following distribution:
… the
label
andiconView
end up distributed with what looks like:I can fix the distribution by adding explicit flexible spacers:
The original distribution works as expected if the central fixed spacer is non-zero. Discovered on
master
commit420dc31e915e357fafbfe6d1f7147e2d50ed3b8f
– I have not checked other versions.