Skip to content
Merged
Changes from 2 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
25 changes: 7 additions & 18 deletions src/Core/src/Graphics/MauiDrawable.Android.cs
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ public class MauiDrawable : PaintDrawable

bool _disposed;

ARect? _bounds;
int _width;
int _height;

Expand Down Expand Up @@ -347,31 +346,21 @@ public void SetBorderLineCap(LineCap lineCap)

public void InvalidateBorderBounds()
{
_bounds = null;

InvalidateSelf();
}

protected override void OnBoundsChange(ARect bounds)
{
if (_bounds != bounds)
{
_bounds = bounds;

if (_bounds != null)
{
var width = _bounds.Width();
var height = _bounds.Height();
var width = bounds.Width();
var height = bounds.Height();

if (_width == width && _height == height)
return;
if (_width == width && _height == height)
return;

_invalidatePath = true;
_invalidatePath = true;

_width = width;
_height = height;
}
}
_width = width;
_height = height;

base.OnBoundsChange(bounds);
}
Expand Down