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.87k stars 716 forks source link

[WASM] `Canvas` incorrectly clips its children #6595

Closed jeromelaban closed 1 year ago

jeromelaban commented 3 years ago

Current behavior

For the following XAML:

<Grid Background="{ThemeResource ApplicationPageBackgroundThemeBrush}">
        <ScrollViewer>
            <Canvas VerticalAlignment="Center" HorizontalAlignment="Center">
                <Line X1="50" Y1="0" X2="-100" Y2="100" Stroke="Black" StrokeThickness="5" StrokeStartLineCap="Round" StrokeEndLineCap="Triangle"/>
            </Canvas>
        </ScrollViewer>
    </Grid>

Uno 3.9 shows the following:

image

Expected behavior

UWP shows the following:

image

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

Workaround

Works on UWP/WinUI

Environment

Nuget Package:

Nuget Package Version(s): 3.9.1

Affected platform(s):

IDE:

Relevant plugins:

Anything else we need to know?

Youssef1313 commented 1 year ago

I think this will be fixed in https://github.com/unoplatform/uno/pull/13220

Youssef1313 commented 1 year ago

Latest canary shows this is fixed.

image