Fixes incorrect parameter type for ILayoutManager.ArrangeChildren (Re… · myroot/maui@c54ac83 (original) (raw)

2 files changed

lines changed

Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
1 1 using System;
2 2 using ElmSharp;
3 3 using Tizen.UIExtensions.Common;
4 +using Size = Microsoft.Maui.Graphics.Size;
4 5
5 6 namespace Microsoft.Maui.Handlers
6 7 {
@@ -140,7 +141,7 @@ protected void OnLayoutUpdated(object? sender, LayoutEventArgs e)
140 141 }
141 142
142 143 VirtualView.LayoutManager.Measure(nativeGeometry.Width, nativeGeometry.Height);
143 -VirtualView.LayoutManager.ArrangeChildren(nativeGeometry);
144 +VirtualView.LayoutManager.ArrangeChildren(new Size(nativeGeometry.Width, nativeGeometry.Height));
144 145 }
145 146 }
146 147 }
Original file line number Diff line number Diff line change
@@ -18,6 +18,6 @@ public TSize Measure(double availableWidth, double availableHeight)
18 18 }
19 19
20 20 internal Func<double, double, Size>? CrossPlatformMeasure { get; set; }
21 -internal Func<Rectangle, Size>? CrossPlatformArrange { get; set; }
21 +internal Func<Size, Size>? CrossPlatformArrange { get; set; }
22 22 }
23 23 }