Skip to content

Commit c54ac83

Browse files
committed
Fixes incorrect parameter type for ILayoutManager.ArrangeChildren (Rectangle -> Size). (#91)
1 parent 859d3bc commit c54ac83

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

src/Core/src/Handlers/Layout/LayoutHandler.Tizen.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
using System;
22
using ElmSharp;
33
using Tizen.UIExtensions.Common;
4+
using Size = Microsoft.Maui.Graphics.Size;
45

56
namespace Microsoft.Maui.Handlers
67
{
@@ -140,7 +141,7 @@ protected void OnLayoutUpdated(object? sender, LayoutEventArgs e)
140141
}
141142

142143
VirtualView.LayoutManager.Measure(nativeGeometry.Width, nativeGeometry.Height);
143-
VirtualView.LayoutManager.ArrangeChildren(nativeGeometry);
144+
VirtualView.LayoutManager.ArrangeChildren(new Size(nativeGeometry.Width, nativeGeometry.Height));
144145
}
145146
}
146147
}

src/Core/src/Platform/Tizen/LayoutCanvas.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,6 @@ public TSize Measure(double availableWidth, double availableHeight)
1818
}
1919

2020
internal Func<double, double, Size>? CrossPlatformMeasure { get; set; }
21-
internal Func<Rectangle, Size>? CrossPlatformArrange { get; set; }
21+
internal Func<Size, Size>? CrossPlatformArrange { get; set; }
2222
}
2323
}

0 commit comments

Comments
 (0)