Skip to content

Commit 092ea17

Browse files
committed
Revert "Fixes incorrect parameter type for ILayoutManager.ArrangeChildren (Rectangle -> Size). (#91)" (#97)
This reverts commit c54ac83.
1 parent 159ffc9 commit 092ea17

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

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

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

65
namespace Microsoft.Maui.Handlers
76
{
@@ -141,7 +140,7 @@ protected void OnLayoutUpdated(object? sender, LayoutEventArgs e)
141140
}
142141

143142
VirtualView.LayoutManager.Measure(nativeGeometry.Width, nativeGeometry.Height);
144-
VirtualView.LayoutManager.ArrangeChildren(new Size(nativeGeometry.Width, nativeGeometry.Height));
143+
VirtualView.LayoutManager.ArrangeChildren(nativeGeometry);
145144
}
146145
}
147146
}

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<Size, Size>? CrossPlatformArrange { get; set; }
21+
internal Func<Rectangle, Size>? CrossPlatformArrange { get; set; }
2222
}
2323
}

0 commit comments

Comments
 (0)