Skip to content

Button partially visible even in a zero width&height container #1188

Open
@mrlacey

Description

@mrlacey

Current behavior

Part of a button is still visible even if in a Grid's row or column set to height or width of 0.

Issue in Skia (GTK)
image

Issue in WASM:
image

Android:
image

Not tested iOS or Mac.

Nothing is shown in a Windows (WinUI) app.

Expected behavior

No part of the button should be visible on any platform.

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

Need this code in an app that uses the material theme:

  <Grid ColumnDefinitions="*,0,*" RowDefinitions="*,0,*">
    <Button Grid.Row="1" Grid.Column="1">testing</Button>
  </Grid>

Repro project (created with VSIX 4.9.18.24)

UnoAppMaterialThemeButtonMargin.zip

Environment

Nuget Package:

Uno.Material.WinUI

Package Version(s):

2.6.1

Affected platform(s):

  • iOS
  • Android
  • WebAssembly
  • Skia
  • UWP
  • MacOS

Anything else we need to know?

This is affecting my 🔥 😉

Metadata

Metadata

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions