[regression/8.0.0-preview.7.8842] Border clips on the bottom and right
See original GitHub issueDescription
The following XAML
<?xml version="1.0" encoding="utf-8" ?>
<ContentPage
x:Class="ButtonTest.MainPage"
xmlns="http://schemas.microsoft.com/dotnet/2021/maui"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
BackgroundColor="White">
<ScrollView>
<VerticalStackLayout WidthRequest="500">
<Border StrokeThickness="5">
<Button Text="Hi hi" />
</Border>
</VerticalStackLayout>
</ScrollView>
</ContentPage>
produces the below.
This did not occur in .NET Preview 7
Steps to Reproduce
- Create a border
- Notice clipping
- Nice.
Link to public reproduction project repository
https://github.com/daltzctr/button-clipping
Version with bug
8.0.0-preview.7.8842
Is this a regression from previous behavior?
Yes, this used to work in .NET MAUI
Last version that worked well
8.0.0-preview.6.8686
Affected platforms
Windows
Affected platform versions
No response
Did you find any workaround?
No
Relevant log output
No response
Issue Analytics
- State:
- Created a month ago
- Reactions:1
- Comments:8 (6 by maintainers)
Top Results From Across the Web
border-bottom-right-radius - CSS: Cascading Style Sheets
The border-bottom-right-radius CSS property rounds the bottom-right corner of an element by specifying the radius (or the radius of the ...
Read more >border-radius - CSS: Cascading Style Sheets - MDN Web Docs
The border-radius CSS property rounds the corners of an element's outer ... bottom-right, A light blue rectangle with a light gray border.
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
I think I changed it from 10 to 20, I should have redone Windows screenshot but didn’t
I also changed Width/HeightRequests from 500 to 300 to better fit in Android’s screen.
Okay, so if I use the following XAML:
…and I modify the UpdatePath() method found in
maui\src\Core\src\Platform\Windows\BorderExtensions.cs
to:Then I get the followinging rendering:
Which I think is correct, other than maybe the 1px spacing between the items?
The main change I made was changing:
to:
(and then remove the TranslateTransform).