Skip to content
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

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

Open
LuisAlfredo92 opened this issue Oct 3, 2024 · 1 comment
Labels
difficulty/tbd Categorizes an issue for which the difficulty level needs to be defined. kind/bug Something isn't working platform/android 🤖 Categorizes an issue or PR as relevant to the Android platform project/layout 🧱 Categorizes an issue or PR as relevant to layouting and containers (Measure/Arrange, Collections,..) triage/untriaged Indicates an issue requires triaging or verification

Comments

@LuisAlfredo92
Copy link

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

@LuisAlfredo92 LuisAlfredo92 added difficulty/tbd Categorizes an issue for which the difficulty level needs to be defined. kind/bug Something isn't working triage/untriaged Indicates an issue requires triaging or verification labels Oct 3, 2024
@Youssef1313
Copy link
Member

#18261 may have an impact here

@Youssef1313 Youssef1313 added platform/android 🤖 Categorizes an issue or PR as relevant to the Android platform project/layout 🧱 Categorizes an issue or PR as relevant to layouting and containers (Measure/Arrange, Collections,..) labels Oct 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
difficulty/tbd Categorizes an issue for which the difficulty level needs to be defined. kind/bug Something isn't working platform/android 🤖 Categorizes an issue or PR as relevant to the Android platform project/layout 🧱 Categorizes an issue or PR as relevant to layouting and containers (Measure/Arrange, Collections,..) triage/untriaged Indicates an issue requires triaging or verification
Projects
None yet
Development

No branches or pull requests

2 participants