Skip to content

Commit

Permalink
Fix BorderView (dotnet#500)
Browse files Browse the repository at this point in the history
  • Loading branch information
myroot committed Aug 25, 2022
1 parent 636ed9d commit 26b791a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/Core/src/Graphics/MauiDrawable.Tizen.cs
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ public void Draw(ICanvas canvas, RectF dirtyRect)
{
canvas.SaveState();
var borderPath = Border.Shape?.PathForBounds(drawBounds);
if (borderPath != null)
if (borderPath != null && Border.StrokeThickness > 0)
{
canvas.MiterLimit = Border.StrokeMiterLimit;
canvas.StrokeColor = Border.Stroke.ToColor();
Expand Down
2 changes: 1 addition & 1 deletion src/Core/src/Platform/Tizen/ViewExtensions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ public static bool ToPlatformVisibility(this Visibility visibility)

public static void UpdateBackground(this ContentViewGroup platformView, IBorderView border)
{
(platformView.GetParent() as WrapperView)?.UpdateMauiDrawable(border);
(platformView.GetParent() as WrapperView)?.UpdateBackground(border.Background);
}

public static void UpdateBackground(this NView platformView, IView view)
Expand Down

0 comments on commit 26b791a

Please sign in to comment.