Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@ protected override void OnLayout(bool changed, int l, int t, int r, int b)


if (Element.Handler is IPlatformViewHandler pvh &&
Element is IContentView cv)
Element is ICrossPlatformLayout cv)
{
pvh.LayoutVirtualView(l, t, r, b, cv.CrossPlatformArrange);
}
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
using NUnit.Framework;
using NUnit.Framework.Legacy;
using UITest.Appium;
using UITest.Core;

namespace Microsoft.Maui.TestCases.Tests.Issues;

public class Issue18526 : _IssuesUITest
{
public override string Issue => "Border not rendering inside a frame";

public Issue18526(TestDevice device)
: base(device)
{ }

[Test]
[Category(UITestCategories.Frame)]
public void BorderShouldRender()
{
var label = App.WaitForElement("label");
var size = label.GetRect();
Assert.That(label.GetText(), Is.EqualTo(".NET MAUI"));
Assert.That(size.Width, Is.GreaterThan(0));
Assert.That(size.Height, Is.GreaterThan(0));
}
}
22 changes: 22 additions & 0 deletions src/Controls/tests/TestCases/Issues/Issue18526.xaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
<?xml version="1.0" encoding="utf-8" ?>
<ContentPage xmlns="http://schemas.microsoft.com/dotnet/2021/maui"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
x:Class="Maui.Controls.Sample.Issues.Issue18526">

<Frame Padding="30" Margin="30"
HorizontalOptions="Center"
VerticalOptions="Start" >
<Border Stroke="#C49B33"
StrokeThickness="4"
StrokeShape="RoundRectangle 40,0,0,40"
Background="#2B0B98"
Padding="16,8"
HorizontalOptions="Center" Grid.Row="0">
<Label Text=".NET MAUI"
AutomationId="label"
TextColor="White"
FontSize="18"
FontAttributes="Bold" />
</Border>
</Frame>
</ContentPage>
14 changes: 14 additions & 0 deletions src/Controls/tests/TestCases/Issues/Issue18526.xaml.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
using Microsoft.Maui.Controls;
using Microsoft.Maui.Controls.Xaml;

namespace Maui.Controls.Sample.Issues;

[Issue(IssueTracker.Github, 18526, "Border not rendering inside a frame", PlatformAffected.All)]

public partial class Issue18526 : ContentPage
{
public Issue18526()
{
InitializeComponent();
}
}