-
Notifications
You must be signed in to change notification settings - Fork 1.8k
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
ScrollView doesn't center its content. #11315
Comments
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. |
Updated with a link to a publicly accessible GitHub demo project. |
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. |
Verified this issue with Visual Studio 17.7.0 Preview 1.0. Can repro on android platform with sample project. |
Is there a workaround for this? Facing it in my project that I'm trying to port from WPF to MAUI. |
Hi @dg2k. We have added the "s/try-latest-version" label to this issue, which indicates that we'd like you to try and reproduce this issue on the latest available public version. This can happen because we think that this issue was fixed in a version that has just been released, or the information provided by you indicates that you might be working with an older version. You can install the latest version by installing the latest Visual Studio (Preview) with the .NET MAUI workload installed. If the issue still persists, please let us know with any additional details and ideally a reproduction project provided through a GitHub repository. 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. |
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.
UPDATE: There is a minor issue with WinUI as well -- if Margin and/or Padding attributes are added to StackLayout containing an Image, the layout gets distorted. The uploaded Demo will explain this clearly with added comment.
Steps to Reproduce
Link to public reproduction project repository
https://github.com/dg2k/MauiDemoScrollView
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
The text was updated successfully, but these errors were encountered: