Skip to content

Commit

Permalink
Fixes incorrect parameter type for ILayoutManager.ArrangeChildren (Re…
Browse files Browse the repository at this point in the history
…ctangle -> Size). (#91)
  • Loading branch information
rookiejava committed Aug 11, 2021
1 parent 859d3bc commit c54ac83
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion src/Core/src/Handlers/Layout/LayoutHandler.Tizen.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
using System;
using ElmSharp;
using Tizen.UIExtensions.Common;
using Size = Microsoft.Maui.Graphics.Size;

namespace Microsoft.Maui.Handlers
{
Expand Down Expand Up @@ -140,7 +141,7 @@ protected void OnLayoutUpdated(object? sender, LayoutEventArgs e)
}

VirtualView.LayoutManager.Measure(nativeGeometry.Width, nativeGeometry.Height);
VirtualView.LayoutManager.ArrangeChildren(nativeGeometry);
VirtualView.LayoutManager.ArrangeChildren(new Size(nativeGeometry.Width, nativeGeometry.Height));
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion src/Core/src/Platform/Tizen/LayoutCanvas.cs
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,6 @@ public TSize Measure(double availableWidth, double availableHeight)
}

internal Func<double, double, Size>? CrossPlatformMeasure { get; set; }
internal Func<Rectangle, Size>? CrossPlatformArrange { get; set; }
internal Func<Size, Size>? CrossPlatformArrange { get; set; }
}
}

0 comments on commit c54ac83

Please sign in to comment.