mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-11-05 13:26:48 +08:00
fix(ios): nowrap label measure in horizontal stack layout (#6186)
This commit is contained in:
@@ -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;
|
||||
}
|
||||
40
apps/app/ui-tests-app/layouts/stacklayout-6059.xml
Normal file
40
apps/app/ui-tests-app/layouts/stacklayout-6059.xml
Normal 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>
|
||||
Reference in New Issue
Block a user