More fixes

This commit is contained in:
2026-01-17 05:22:37 +00:00
parent f62d4aa5f2
commit 7d2ac327a3
58 changed files with 754 additions and 666 deletions

View File

@@ -137,24 +137,24 @@ public class SkiaSwipeView : SkiaLayoutView
Invalidate();
}
protected override SKSize MeasureOverride(SKSize availableSize)
protected override Size MeasureOverride(Size availableSize)
{
if (_content != null)
{
_content.Measure(availableSize);
_content.Measure(new Size(availableSize.Width, availableSize.Height));
}
return availableSize;
}
protected override SKRect ArrangeOverride(SKRect bounds)
protected override Rect ArrangeOverride(Rect bounds)
{
if (_content != null)
{
var contentBounds = new SKRect(
var contentBounds = new Rect(
bounds.Left + _swipeOffset,
bounds.Top,
bounds.Right + _swipeOffset,
bounds.Bottom);
bounds.Width,
bounds.Height);
_content.Arrange(contentBounds);
}
return bounds;