-
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
[regression/7.0.81] Grid can't use star and auto together in version 7.0.81 #14520
Comments
I can confirm the same happens with |
After some more testing it really seems like the changes to grid calculations should be reverted, all the heights and widths are off. On a somewhat related note: does anybody know how to rollback the workloads to the previous version of Maui 🙄 |
Update: this issue only occurs when the grid is a child of a stacklayout. This seems to have been already known and tested
which makes it even stranger that this slipped through in an official release |
It is actually the initial calculations that are wrong. When resizing the window (not applicable for iPhone/Android) everything is recalculated roughly OK. I say rougly as my uniform margin |
Visual Studio Installer has rollback to previous version. |
yes, and it rolled back visual studio to 17.5.3 but left the workloads at 7.0.81 |
I got the workload back to 7.0.59 after downgrading both stable and preview VS. Although there seems to be other ways |
Hi @tom-b-iodigital. 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. |
The repros projects are helpful so we can all have a shared understanding of the issue, as you see it, so if we try to fix it we have a baseline to check against. Even if it is an "It's so simple to take the template and replace it with X" type of issue, it makes it clear for anyone wanting to help to just check out your example and run it to see for themselves, and for you to verify that the issue is fixed against a clear example you've created. |
Update with a repro project https://github.com/tom-b-iodigital/maui-gridbug |
We are also facing grid layout issues after updating to the latest MAUI version. |
We are facing the same issue, downgrading VS but the project is still on 7.0.81 |
@joseluisct Placing this property should work, at least it does for me... I didn't have to downgrade Visual Studio for it... I also found this command line, but it does not seem to download the right version for me: |
It is working again, with the property MauiVersion, I was still seeing the UI wrong even after rebuild, but after close VS, delete bin/obj and rebuild two times, It is now with 7.0.59. Thank you |
We've added this issue to our backlog, and we will work to address it as time and resources allow. If you have any additional information or questions about this issue, please leave a comment. For additional info about issue management, please read our Triage Process. |
After using MauiVersion in the project file, and deleting bin/obj and rebuilding several times , etc. When run
Could you please tell me what other steps if any that you did? |
When I run I downgraded VS, also unistalled the app from emulator, run |
+1 this... [M]ulti-Platform [A]pp [U]ser [I]ssues continues to grow |
This is a duplicate of #13993. It's been fixed in .NET 8 (#13999) and the fix has been backported to .NET 7 (#14165). Unfortunately the SR release was already in motion by the time we backported the fix, and the process that should have updated the release did not function as intended. We're looking into that. In the meantime, this will be fixed in the next release. |
I spent a lot of time trying to figure out why, after upgrading to 7.0.81, the entire layout of my application floated in various places. Fortunately, I have experimentally established that the problem is with the Grid (separately and inside the CollectionView). Previously aligned elements floated, and the height of the elements in the CollectionView was calculated incorrectly. Since my application uses Grid both for tabular layout and for simulating layers, I came up with the following temporary solution until an update is released. Create IValueConverter
Define global Grid style
This made it possible to set the RowDefinitions="Auto" parameter for all Grids in the application where ColumnDefinitions (i.e. table layout) are defined and ignore all Grids that are used to simulate layers. The RowDefinitions="Auto" parameter in my case fixes problems with calculating the height of blocks. |
Is there a timeframe for the next SR? |
While the next SR is not available: |
I hope for NuGet package, so it can release fastest this hot bug. |
Duplicate of #13993 |
Discussed in #14519
Description
When you make a grid with a column(row)definition that is set to auto and another one that is set to *, and the grid is a child of a stacklayout the grid measurement calculations are wrong
Steps to Reproduce
These steps seems simple and clear enough, so I didn't provide a repro project yet. If needed I can upload one later
Link to public reproduction project repository
https://github.com/tom-b-iodigital/maui-gridbug
Version with bug
7.0.81
Last version that worked well
7.0.59
Affected platforms
iOS, Android, I was not able test on other platforms
Affected platform versions
All versions
Did you find any workaround?
Setting the column defined with auto to a fixed width fixes the problem, however this is not always possible in complex layouts
Relevant log output
No response
The text was updated successfully, but these errors were encountered: