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

Rendering issue with rounded corners #1106

Closed
kmelmon opened this issue Jul 26, 2019 · 1 comment
Closed

Rendering issue with rounded corners #1106

kmelmon opened this issue Jul 26, 2019 · 1 comment
Labels
team-Rendering Issue for the Rendering team

Comments

@kmelmon
Copy link
Contributor

kmelmon commented Jul 26, 2019

ClippingBug
Describe the bug

When using certain sizes in combination with rounded corners, there's a rendering bug - the child of the element with rounded corners can have its corners "poke out" instead of being clipped to the rounded corner.

Steps to reproduce the bug

Steps to reproduce the behavior:
Create an app with this markup:

    <Canvas>
        <Grid BorderBrush="Black" BorderThickness="3" CornerRadius="10">
            <StackPanel
          Orientation="Horizontal"
          Background="Red"
          BorderThickness="0"
          BorderBrush="Green">
                <TextBlock Text="Hello World XAML!" />
                <TextBlock Text="TextBlock #2" VerticalAlignment="Center" />
            </StackPanel>
        </Grid>
    </Canvas>


```**Expected behavior**
<!-- Please provide a description of what you expected to happen-->
The red background should be clipped inside the rounded corners

**Version Info**
This is with inbox XAML on rs_onecore_dep 190706.  Issue likely repro's on builds back to RS2 or so, when we first added rounded corner clipping via dcomp.

<!-- Which device form factors did you see the issue on? Leave blank if you didn't try that device. -->
Desktop

@JJBrychell
Copy link

I am unable to repro this issue in any WINUI 3 releases since 1.1 or in System Xaml, so am going to close it as fixed (since obviously at some point it existed given the image included above).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
team-Rendering Issue for the Rendering team
Projects
None yet
Development

No branches or pull requests

3 participants