Quantcast
Channel: Xamarin.Forms — Xamarin Community Forums
Viewing all articles
Browse latest Browse all 91519

TailTruncation Issue

$
0
0

Hi,

I have a form that has a grid that contains the following xaml:

                <StackLayout Orientation="Horizontal" Grid.Row="1" Grid.RowSpan="1" Grid.Column="2" Grid.ColumnSpan="2">
                  <Label Text="{Binding Header}" HorizontalOptions="FillAndExpand"
                       FontSize="Small" FontAttributes="{Binding Font}" LineBreakMode="TailTruncation" TextColor="{Binding ForegroundColor}" />
                  <Label Text="{Binding Appointment_Date,StringFormat='{0:HH:mm}'}" HorizontalOptions="End" FontSize="Small"
                         FontAttributes="{Binding Font}" LineBreakMode="NoWrap" TextColor="{Binding ForegroundColor}" />
                </StackLayout>

If the header text is small enough (no tail truncation needed), the line looks fine (Header text is left justified and appointment time is right justified on the line. However, if the header needs the TailTruncation, the appointment time is shifted to the right such that the last character of the time is cut off. The expected behavior would be for the time to remain in the same location regardless of whether or not the header text needs to be tail truncated.

I have tried this both on Android and iPhone simulators and it works the same on both.

Please help!

Thanks.


Viewing all articles
Browse latest Browse all 91519

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>