<FlexboxLayout style=“width: 200; background-color: red;“>
<Label text=“AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA”
flexShrink=“1" style=“background-color: blue;“></Label>
<Label text=“BBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBB”
flexShrink=“1" style=“background-color: green;“></Label>
<Label text=“CCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCC”
flexShrink=“1" style=“background-color: yellow;“></Label>
</FlexboxLayout>
This should truncate all 3 labels and displays all of them. It works on Android, but on iOS labels are not truncated and in this case we only see the first one.
I made a mistake ? It's a bug? Is there a trick to make it work? (StackLayout/GridLayout/DockLayout don't fit my needs)
tns-core-modules: 5.1.1
<GridLayout columns="20, auto, auto" style="width: 200; background-color: red;"> <Label col="0" text="AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA" style="background-color: blue;"></Label> <Label col="1" text="BBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBB" style="background-color: green;"></Label> <Label col="2" text="CCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCC" style="background-color: yellow;"></Label> </GridLayout>
So, for my need it's not better than Flexbox. – jpierront*
to equally share the space between children. – Manojalign-items: center;
onFlexboxLayout
. If you like to still stretch the label to it's parent, set the label's height to 100%. – Manoj