maui icon indicating copy to clipboard operation
maui copied to clipboard

ScrollView doesn't center its content.

Open dg2k opened this issue 1 year ago • 1 comments

Description

I upgraded my Maui app from net6.0 to net7.0 and having an issue with ScrollView as it doesn't center its content anymore. I use Grid layout to position Labels and Button and ScrollView is used for vertical scrolling. With ScrollView XAML commented out, the view rendering is perfect as it should be.

It works fine on Windows and the issue is on Android. I haven't tested on other platforms.

Steps to Reproduce

  1. Create Grid Layout and position some Labels and Button(s) controls to show as centered.
  2. Add the Grid to ScrollView control.

Link to public reproduction project repository

n/a

Version with bug

7.0 (current)

Last version that worked well

6.0.424

Affected platforms

Android

Affected platform versions

Android 11 and Android 12

Did you find any workaround?

No.

Relevant log output

No response

dg2k avatar Nov 12 '22 21:11 dg2k

Hi @dg2k. We have added the "s/needs-repro" label to this issue, which indicates that we require steps and sample code to reproduce the issue before we can take further action. Please try to create a minimal sample project/solution or code samples which reproduce the issue, ideally as a GitHub repo that we can clone. See more details about creating repros here: https://github.com/dotnet/maui/blob/main/.github/repro.md

This issue will be closed automatically in 7 days if we do not hear back from you by then - please feel free to re-open it if you come back to this issue after that time.

ghost avatar Nov 14 '22 15:11 ghost

Updated with a link to a publicly accessible GitHub demo project. The project, when running, shows explanatory notes. The same comment text is in MainPage.xaml.

dg2k avatar Nov 15 '22 10:11 dg2k

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.

ghost avatar Nov 15 '22 19:11 ghost

Verified this issue with Visual Studio 17.7.0 Preview 1.0. Can repro on android platform with sample project. MauiDemoScrollView-master.zip 11315 A

Zhanglirong-Winnie avatar May 31 '23 06:05 Zhanglirong-Winnie

Is there a workaround for this? Facing it in my project that I'm trying to port from WPF to MAUI.

Shujee avatar Apr 23 '24 17:04 Shujee