Skip to content

Commit

Permalink
chore: Adjust
Browse files Browse the repository at this point in the history
  • Loading branch information
Youssef1313 committed Sep 20, 2024
1 parent 2a7dcad commit 8903470
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 13 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,6 @@ private void Initialize()
LayoutParameters = new ViewGroup.LayoutParams(ViewGroup.LayoutParams.MatchParent, ViewGroup.LayoutParams.MatchParent);
}

bool ILayouterElement.StretchAffectsMeasure => false;

protected override void OnMeasure(int widthMeasureSpec, int heightMeasureSpec)
{
base.OnMeasure(widthMeasureSpec, heightMeasureSpec);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -168,8 +168,6 @@ void ILayouterElement.Arrange(Rect finalRect)
}
}

bool ILayouterElement.StretchAffectsMeasure => false;

partial void OnLayoutPartial(bool changed, int left, int top, int right, int bottom)
{
// base.OnLayout is not invoked in the mixin to allow for the clipping algorithms
Expand Down
9 changes: 8 additions & 1 deletion src/Uno.UI/UI/Xaml/FrameworkElement.Android.cs
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,14 @@

namespace Microsoft.UI.Xaml
{
public partial class FrameworkElement
// Hack for keeping binary compatibility related to StretchAffectsMeasure.
// This interface can be removed in next major.
internal interface IWorkaround
{
bool StretchAffectsMeasure { get; }
}

public partial class FrameworkElement : IWorkaround
{
private Size? _lastLayoutSize;
private bool _constraintsChanged;
Expand Down
8 changes: 0 additions & 8 deletions src/Uno.UI/UI/Xaml/ILayouterElement.Android.cs

This file was deleted.

0 comments on commit 8903470

Please sign in to comment.