unoplatform / uno

Open-source platform for building cross-platform native Mobile, Web, Desktop and Embedded apps quickly. Create rich, C#/XAML, single-codebase apps from any IDE. Hot Reload included! 90m+ NuGet Downloads!!
https://platform.uno
Apache License 2.0
8.98k stars 730 forks source link

[Android (probably iOS)] Items inside a grid don't have the requested height #18382

Open LuisAlfredo92 opened 1 month ago

LuisAlfredo92 commented 1 month ago

Current behavior

After upgrading from 5.3.108 to 5.4.5, items inside a grid don't have the requested size (110 px height), and not even changing the size 5 4 5

Code:

new Grid()
    .ColumnDefinitions("70,*,60")
    .RowDefinitions("2*,*,5")
    .CornerRadius(10, 10, 0, 0)
    .Width(325)
    .Height(110)
    .Background(Theme.Brushes.Primary.Default)
    .BorderBrush(Theme.Brushes.OnPrimary.Container.Default)
    .BorderThickness(1)
    .Children
    (
        .
        .
        .

Expected behavior

It's expected to have the same size before updating 5 3 108

How to reproduce it (as minimally and precisely as possible)

Just changed "Uno.Sdk" in global.json from "5.3.108" to "5.4.5", and "Microsoft.Maui.Controls" and "Microsoft.Maui.Controls.Compatibility" from "8.0.71" to "8.0.82"

Workaround

No response

Works on UWP/WinUI

Yes

Environment

Other

NuGet package version(s)

5.4.5

Affected platforms

Android

IDE

Visual Studio 2022

IDE version

No response

Relevant plugins

No response

Anything else we need to know?

I tried changing "Microsoft.Maui.Controls" and "Microsoft.Maui.Controls.Compatibility" back to 8.0.71, but doing that made that not event the buttons were displayed even after I revert to 8.0.82

Youssef1313 commented 1 month ago

https://github.com/unoplatform/uno/pull/18261/ may have an impact here