Skip to content

Commit

Permalink
Use logical parent for determining flow direction
Browse files Browse the repository at this point in the history
  • Loading branch information
hartez committed Aug 26, 2022
1 parent 53155c7 commit d4ae573
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/Core/src/Platform/iOS/ViewExtensions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ public static void UpdateFlowDirection(this UIView platformView, IView view)
switch (view.FlowDirection)
{
case FlowDirection.MatchParent:
updateValue = GetParentMatchingSemanticContentAttribute(platformView);
updateValue = GetParentMatchingSemanticContentAttribute(view);
break;
case FlowDirection.LeftToRight:
updateValue = UISemanticContentAttribute.ForceLeftToRight;
Expand All @@ -144,9 +144,9 @@ public static void UpdateFlowDirection(this UIView platformView, IView view)
}
}

static UISemanticContentAttribute GetParentMatchingSemanticContentAttribute(this UIView platformView)
static UISemanticContentAttribute GetParentMatchingSemanticContentAttribute(IView view)
{
var parent = platformView.Superview;
var parent = view.Parent?.Handler?.PlatformView as UIView;

if (parent == null)
{
Expand Down

0 comments on commit d4ae573

Please sign in to comment.