Bug 37442 - Label Text exceeding the bounds and overlapping with nearby views in windows 8.0 phone and WinRT
Summary: Label Text exceeding the bounds and overlapping with nearby views in windows ...
Status: RESOLVED FIXED
Alias: None
Product: Forms
Classification: Xamarin
Component: Windows ()
Version: 1.5.1
Hardware: PC Windows
: Normal normal
Target Milestone: ---
Assignee: Chris King
URL:
Depends on:
Blocks:
 
Reported: 2016-01-06 11:17 UTC by Dharmendar
Modified: 2017-06-19 22:39 UTC (History)
7 users (show)

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


Attachments
Label Text overlaps with nearby view (258.06 KB, application/zip)
2016-01-06 11:17 UTC, Dharmendar
Details


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:
Status:
RESOLVED FIXED

Description Dharmendar 2016-01-06 11:17:29 UTC
Created attachment 14463 [details]
Label Text overlaps with nearby view

When I place a view next to the label,label text overlaps with nearby view.

//App.cs

public class CustomLayout:Layout<View>
{
    public CustomLayout()
    {
        Label label1 = new Label()
        {
            Text = "Renderer",
            TextColor = Color.Black,
            XAlign = TextAlignment.Center,
            YAlign = TextAlignment.Center,
            LineBreakMode = Xamarin.Forms.LineBreakMode.NoWrap,
            FontSize = Device.GetNamedSize(NamedSize.Small, typeof(Label)),
        };

        Label label2 = new Label()
        {
            Text = "Renderer",
            TextColor = Color.Red,
            XAlign = TextAlignment.Center,
            YAlign = TextAlignment.Center,
            LineBreakMode = Xamarin.Forms.LineBreakMode.NoWrap,
            FontSize = Device.GetNamedSize(NamedSize.Small, typeof(Label)),
        };
      
        this.Children.Add(label1);
        this.Children.Add(label2);
    }

    protected override void LayoutChildren(double x, double y, double width, double height)
    {
        foreach (View view in Children)
        {
            view.Layout(new Rectangle(x, y, 40, 50));
            x += 40;
        } 
    }
}
Comment 1 Parmendra Kumar 2016-01-12 14:25:56 UTC
I have checked this issue and observed that When I am running app on WindowsPhone the label text "Renderer" don't show completely.

Screencast: http://www.screencast.com/t/vBgSY5Zh6c

Please have a look and let me know If I have missed anything or you getting same behavior.

Environment info:

Xamarin.Forms.2.0.1.6492-pre1

Microsoft Visual Studio Enterprise 2015
Version 14.0.23107.0 D14REL
Microsoft .NET Framework
Version 4.6.01055

Installed Version: Enterprise
Xamarin   4.0.1.69 (21aad62)
Visual Studio extension to enable development for Xamarin.iOS and Xamarin.Android.

Xamarin.Android   6.0.1.5 (50280e4)
Visual Studio plugin to enable development for Xamarin.Android.

Xamarin.iOS   9.4.1.20 (122b860)
Visual Studio extension to enable development for Xamarin.iOS.
Comment 2 Dharmendar 2016-02-02 12:43:08 UTC
What information is required regarding this issue i have already attached replication sample along with this report
Comment 3 Parmendra Kumar 2016-02-02 13:14:02 UTC
@Dharmendar, I have checked this issue with attached sample project in bug description.

Could you please follow the screencast in comment #1 Screencast: http://www.screencast.com/t/vBgSY5Zh6c and let me know are you getting same behavior or I have missed something else.

Thanks
Comment 4 Samantha Houts [MSFT] 2017-06-19 22:39:56 UTC
Thank you for taking the time to submit this report. After reviewing the description of this bug, we believe it no longer affects the current version of Xamarin.Forms. If you are still experiencing the issue after updating your packages, please reopen this report with an attached reproduction. 
 
Here are some reproduction best practices: https://gist.github.com/jassmith/92405c300e54a01dcc6d