Skip to content

Commit

Permalink
Improve
Browse files Browse the repository at this point in the history
  • Loading branch information
MartyIX committed Jul 26, 2024
1 parent 62b0853 commit 62e85c0
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 4 additions & 1 deletion src/Core/src/Handlers/View/ViewHandler.Windows.cs
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,10 @@ internal static void MapContextFlyout(IElementHandler handler, IContextFlyoutEle
}
else
{
uiElement.ClearValue(UIElement.ContextFlyoutProperty);
if (contextFlyoutContainer is not IView view || !view.IsPlatformViewNew)
{
uiElement.ClearValue(UIElement.ContextFlyoutProperty);
}
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion src/Core/src/Platform/Windows/ViewExtensions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ public static void UpdateBackground(this FrameworkElement platformView, IView vi

public static void UpdateFlowDirection(this FrameworkElement platformView, IView view)
{
if (!view.IsPlatformViewNew || view.FlowDirection != FlowDirection.LeftToRight)
if (!view.IsPlatformViewNew || view.FlowDirection != FlowDirection.MatchParent)
{
var flowDirection = view.FlowDirection;
switch (flowDirection)
Expand Down

0 comments on commit 62e85c0

Please sign in to comment.