Skip to content

Commit

Permalink
Revert "Fixes incorrect parameter type for ILayoutManager.ArrangeChil…
Browse files Browse the repository at this point in the history
…dren (Rectangle -> Size). (#91)" (#97)

This reverts commit c54ac83.
  • Loading branch information
rookiejava committed Apr 7, 2022
1 parent 13ebd2b commit 43ea663
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions src/Core/src/Handlers/Layout/LayoutHandler.Tizen.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
using System;
using ElmSharp;
using Tizen.UIExtensions.Common;
using Size = Microsoft.Maui.Graphics.Size;

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

VirtualView.LayoutManager.Measure(nativeGeometry.Width, nativeGeometry.Height);
VirtualView.LayoutManager.ArrangeChildren(new Size(nativeGeometry.Width, nativeGeometry.Height));
VirtualView.LayoutManager.ArrangeChildren(nativeGeometry);
}
}
}
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<Size, Size>? CrossPlatformArrange { get; set; }
internal Func<Rectangle, Size>? CrossPlatformArrange { get; set; }
}
}

0 comments on commit 43ea663

Please sign in to comment.