Skip to content

[iOS] TextBlock not horizontally/vertically centered inside Grid #2088

Closed

Description

@juliecantin

Current behavior

When we try to display a TextBlock vertically and horizontally aligned, so that it is centered on an ellipse, its alignment is skewed on iOS, even though it is displayed correctly on Android and UWP

Expected behavior

TextBlock is vertically and horizontally centered.

How to reproduce it (as minimally and precisely as possible)

Clone this test project: https://github.com/jcantin-nventive/textblock-align
Launch the app

Environment

Nuget Package:

Package Version(s): 1.45.0

Affected platform(s):

  • iOS
  • Android
  • WebAssembly
  • WebAssembly renderers for Xamarin.Forms
  • Windows
  • Build tasks
  • Solution Templates

Visual Studio:

  • 2017 (version: )
  • 2019 (version: )
  • for Mac (version: )

Relevant plugins:

  • Resharper (version: )

Anything else we need to know?

Activity

  1. added
    kind/bug
    triage/untriaged
    on Nov 14, 2019
  2. juliecantin commented on Nov 14, 2019

    @juliecantin
    ContributorAuthor

    This seems to be related to the fact that the Grid has no fixed dimensions but one of its children, does. Setting fixed dimensions to the Grid works around the issue.

  3. added this to the 3.1 milestone on Aug 29, 2020
  4. removed
    triage/untriaged
    on Aug 29, 2020
  5. modified the milestones: 3.1, HighPriority on Aug 31, 2020
  6. modified the milestones: 3.1, 3.2 on Sep 14, 2020
  7. added
    project/layout 🧱
    on Sep 21, 2020
  8. added
    area/grid
    on Oct 8, 2020
  9. removed this from the 3.2 milestone on Oct 19, 2020
  10. added
    difficulty/tbd
    on Feb 15, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area/griddifficulty/tbdkind/bugproject/layout 🧱

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions