-
Notifications
You must be signed in to change notification settings - Fork 1.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Wrong height for Label placed inside a Scrollview #13498
Comments
Hi @cat0363. We have added the "s/needs-info" label to this issue, which indicates that we have an open question for you before we can take further action. 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. |
Hi, @cat0363 - thanks for submitting this issue. Could you let us know what version of .NET you're on (have you tried the latest version yet? if not, could you give it a go?), and what platforms/versions you're seeing this issue on? |
@rachelkang, thank you for your reply. I used .NET 7.0.2 The version of .NET MAUI is 6.0.552. |
Hi @cat0363. 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. |
Hello @cat0363 , I solved this issue by just adding a fixed height to the label: Please review this recent documentation the MS team shared with us 7 days ago. I found it really helpful and I personally learned from it. https://learn.microsoft.com/en-us/dotnet/maui/migration/layouts?view=net-maui-7.0 Note: I tested it on .NET MAUI 7.0.59 |
Hi, @rachelkang Hi, @vhugogarcia |
Hi, @rachelkang |
A msftbot changed the status of this issue to Closed. Is this change mechanical? |
Yeah, the robot closed it because of the "try latest version tag". It shouldn't have. |
Hi, @hartez |
@cat0363 Sorry, I have no idea why the bot closed it this time. No action needed on your part, I'll re-open it. |
@hartez , Thank you for reopening this issue. |
* Ensure an exact measure for the nested horizontal scrollview Fixes #13498 * clean up and add comments * Auto-format source code * Add automated test * Auto-format source code * Remove unnecessary cast --------- Co-authored-by: GitHub Actions Autoformatter <autoformat@example.com>
Thank you for your work leading up to the closure of this issue. \(^_^)/ |
Discussed in #13494
Originally posted by cat0363 February 22, 2023
Xamarin.Forms and .NET MAUI have different heights when placing a Label inside a ScrollView.
Below is the XAML for confirmation. (This is the result of running on Android.)
The execution result of Xamarin.Forms is as follows.
The execution result of .NET MAUI is as follows.
How can I get the same execution result as Xamarin.Forms?
The text was updated successfully, but these errors were encountered: