Skip to content

[WASM] Shapes' border getting clipped #9655

Closed

Description

@carldebilly

Current behavior

Take following XAML:

<StackPanel Spacing="10" Margin="15" Background="LightGray" HorizontalAlignment="Left" VerticalAlignment="Top">
    <Polygon Points="88,0 12,131 163,131" Fill="LightBlue" Stroke="DarkBlue" StrokeThickness="20" HorizontalAlignment="Center" />
    <Polygon Points="169,0 23,131 315,131" Fill="LightBlue" Stroke="DarkBlue" StrokeThickness="20" HorizontalAlignment="Center" />
    <Polygon Points="169,0 23,23 23,68 169,91 315,68 315,23" Fill="LightBlue" Stroke="DarkBlue" StrokeThickness="10" HorizontalAlignment="Center" />
    <Line Y1="57" X2="169" Stroke="DarkBlue" StrokeThickness="25.25" HorizontalAlignment="Center" />
</StackPanel>

Render on WASM:
image

Expected behavior

Should be rendered as on XAML Studio, without any clipping...
image

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

See in Playground http://playground.platform.uno/#e1545d52

Playground: https://playground.platform.uno/#428d9042

Workaround

No response

Works on UWP/WinUI

Yes

Environment

Uno.UI / Uno.UI.WebAssembly / Uno.UI.Skia, Uno.WinUI / Uno.WinUI.WebAssembly / Uno.WinUI.Skia

NuGet package version(s)

No response

Affected platforms

WebAssembly

IDE

No response

IDE version

No response

Relevant plugins

No response

Anything else we need to know?

The rendered result on WASM is producing the exact right shapes at the exact same place than Windows... The clipping is the only difference.

Activity

  1. added
    kind/bug
    triage/untriaged
    difficulty/tbd
    on Aug 29, 2022
  2. added
    project/shapes-brushes 🔶
    platform/wasm 🌐
    and removed
    triage/untriaged
    on Aug 29, 2022
  3. added
    difficulty/medium 🤔
    and removed
    difficulty/tbd
    on Aug 14, 2023
  4. self-assigned this
    on Aug 23, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

difficulty/medium 🤔kind/bugplatform/wasm 🌐project/shapes-brushes 🔶

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions