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

@@ -130,25 +130,21 @@ public class SkiaRefreshView : SkiaLayoutView
/// </summary>
public event EventHandler? Refreshing;
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)
{
float offset = _isRefreshing ? _refreshThreshold : _pullDistance;
var contentBounds = new SKRect(
bounds.Left,
bounds.Top + offset,
bounds.Right,
bounds.Bottom + offset);
var contentBounds = new Rect(bounds.Left, bounds.Top + offset, bounds.Width, bounds.Height);
_content.Arrange(contentBounds);
}
return bounds;