Bug 57755 - Wrong label layout when text is bonded and control is not on the screen (on collapsed Master of MasterMasterDetailPage)
Summary: Wrong label layout when text is bonded and control is not on the screen (on c...
Status: RESOLVED DUPLICATE of bug 55356
Alias: None
Product: Forms
Classification: Xamarin
Component: Android ()
Version: 2.3.4
Hardware: PC Windows
: --- normal
Target Milestone: ---
Assignee: Bugzilla
Depends on:
Reported: 2017-06-26 10:11 UTC by Sergey Medvedev
Modified: 2017-06-26 20:39 UTC (History)
2 users (show)

Is this bug a regression?: ---
Last known good build:

misplaced text on red indicator (50.79 KB, image/jpeg)
2017-06-26 10:11 UTC, Sergey Medvedev
misplaced text on red indicator with layout (59.30 KB, image/jpeg)
2017-06-26 10:12 UTC, Sergey Medvedev

Notice (2018-05-24): bugzilla.xamarin.com is now in read-only mode.

Please join us on Visual Studio Developer Community and in the Xamarin and Mono organizations on GitHub to continue tracking issues. Bugzilla will remain available for reference in read-only mode. We will continue to work on open Bugzilla bugs, copy them to the new locations as needed for follow-up, and add the new items under Related Links.

Our sincere thanks to everyone who has contributed on this bug tracker over the years. Thanks also for your understanding as we make these adjustments and improvements for the future.

Please create a new report on Developer Community or GitHub with your current version information, steps to reproduce, and relevant error messages or log files if you are hitting an issue that looks similar to this resolved bug and you do not yet see a matching new report.

Related Links:

Description Sergey Medvedev 2017-06-26 10:11:20 UTC
Created attachment 23110 [details]
misplaced text on red indicator

I created a UserControl to emulate 'rounded label' (didn't find how to create renderer for UWP ) : 'left half circle' + text + 'right half circle'. The label with Transparent TextColor is used to draw rectangle with necessary width according to text.
Here it's  XAML:
<ContentView xmlns="http://xamarin.com/schemas/2014/forms"
    <Grid ColumnSpacing="0" x:Name="RootControl">
            <ColumnDefinition Width="Auto" />
            <ColumnDefinition Width="Auto" />
            <ColumnDefinition Width="Auto" />

        <Image Grid.Column="0" Source="{Binding LeftImage}" VerticalOptions="Center" HeightRequest="28"/>
        <Label Grid.Column="1" BackgroundColor="{Binding IndicatorColor}" HorizontalOptions="FillAndExpand"
               VerticalOptions="Center" HeightRequest="28" VerticalTextAlignment="Center"
               Text="{Binding Text}" Margin="-5,0,-5,0" TextColor="Transparent" />
        <Image Grid.Column="2" Source="{Binding RightImage}" VerticalOptions="Center" HeightRequest="28"/>

        <Label Grid.Column="0" Grid.ColumnSpan="3" Margin="3,0,3,0" LineBreakMode="NoWrap"
               VerticalTextAlignment="Center" Style="{StaticResource indicatorLabel}" HorizontalTextAlignment="Center"
               Text="{Binding Text}" x:Name="MainLabel" />

This Indicators are placed in other containers inside the Master page of MastedDetailPage.

 Sometimes (>50%) Text of Indicator are misplaced when the text was bonded when Master page was collapsed. 
 The layout became correct after the bonded text is changed.
Comment 1 Sergey Medvedev 2017-06-26 10:12:05 UTC
Created attachment 23111 [details]
misplaced text on red indicator with layout
Comment 2 Jimmy [MSFT] 2017-06-26 20:39:26 UTC

*** This bug has been marked as a duplicate of bug 55356 ***