fix(ios): nowrap label measure in horizontal stack layout (#6186)

This commit is contained in:
Manol Donev
2018-08-17 18:24:06 +03:00
committed by vakrilov
parent ca6cccb211
commit efd5f8d9ca
3 changed files with 60 additions and 5 deletions

View File

@@ -21,6 +21,7 @@ export function loadExamples() {
examples.set("pgrid", "layouts-percent/grid");
examples.set("pstack", "layouts-percent/stack");
examples.set("pwrap", "layouts-percent/wrap");
examples.set("stacklayout-6059", "layouts/stacklayout-6059");
return examples;
}

View File

@@ -0,0 +1,40 @@
<Page class="page" xmlns="http://schemas.nativescript.org/tns.xsd">
<StackLayout>
<StackLayout orientation="horizontal">
<StackLayout backgroundColor="GoldenRod">
<Label text="overflowing text, overflow"></Label>
</StackLayout>
<StackLayout backgroundColor="LemonChiffon">
<Label text="overflowing text, overflowing text"></Label>
</StackLayout>
<StackLayout backgroundColor="LightBlue">
<Label text="overflowing text, overflowing text"></Label>
</StackLayout>
<StackLayout backgroundColor="HotPink">
<Label text="overflowing text, overflowing text"></Label>
</StackLayout>
</StackLayout>
<StackLayout orientation="horizontal">
<Label text="overflowing text, overflow" backgroundColor="LightBlue"></Label>
<Label text="overflowing text, overflowing text" backgroundColor="LightGray"></Label>
<Label text="overflowing text, overflowing text" backgroundColor="HotPink"></Label>
<Label text="overflowing text, overflowing text" backgroundColor="Yellow"></Label>
</StackLayout>
<StackLayout orientation="horizontal">
<Label text="overflowing text, overflowing text" backgroundColor="GoldenRod" textWrap="true"></Label>
<Label text="overflowing text, overflowing text" backgroundColor="LemonChiffon" textWrap="true"></Label>
<Label text="overflowing text, overflowing text" backgroundColor="LightBlue" textWrap="true"></Label>
</StackLayout>
<StackLayout orientation="horizontal">
<Label text="1 2 3 4 5 6 7 8 9 0" backgroundColor="LightBlue" textWrap="true"></Label>
<Label text="1 2 3 4 5 6 7 8 9 0" backgroundColor="LightGray" textWrap="true"></Label>
<Label text="1 2 3 4 5 6 7 8 9 0" backgroundColor="HotPink" textWrap="true"></Label>
<Label text="1 2 3 4 5 6 7 8 9 0" backgroundColor="Yellow" textWrap="true"></Label>
</StackLayout>
</StackLayout>
</Page>