dotnet / maui

.NET MAUI is the .NET Multi-platform App UI, a framework for building native device applications spanning mobile, tablet, and desktop.
https://dot.net/maui
MIT License
22.24k stars 1.76k forks source link

[Android] When using StackLayout with HorizontalOptions="Center" within Scrollview causes labels/buttons to be truncated #10568

Open davefxy opened 2 years ago

davefxy commented 2 years ago

Description

[Android] When using StackLayout with HorizontalOptions="Center" within Scrollview causes labels/buttons to be truncated. I was using net 7. Included app to display the issue. The app displays 3 instances of the same stacklayout within Grid, Scollview and changing HorizontalOption="Start". Project reproducing problem: MauiLabelIssue.zip

Steps to Reproduce

Run the attached project

Link to public reproduction project repository

https://github.com/dotnet/maui/files/9739801/MauiLabelIssue.zip

Version with bug

Unknown/Other (please specify)

Last version that worked well

Unknown/Other

Affected platforms

Android

Affected platform versions

Android 12.1-Api 32

Did you find any workaround?

Dont use HorizontalOptions="Center"

Relevant log output

No response

PureWeen commented 2 years ago

Related https://github.com/dotnet/maui/issues/8873

ghost commented 2 years ago

We've moved this issue to the Backlog milestone. This means that it is not going to be worked on for the coming release. We will reassess the backlog following the current release and consider this item at that time. To learn more about our issue management process and to have better expectation regarding different types of issues you can read our Triage Process.

mtanml commented 2 years ago

I'm having this issue with all labels in Android with HorizontalOptions="Center"... not limited to those within a ScrollView or a StackLayout

XamlTest commented 1 year ago

Verified this on Visual Studio Enterprise 17.7.0 Preview 1.0. Repro on Android 13.0-API33 with provided MauiLabelIssue.zip project.

image