Skip to content

Commit

Permalink
Merge pull request #85 from xoascf/fix-hide-rtl
Browse files Browse the repository at this point in the history
Fix RTL autohide animation
  • Loading branch information
dremin authored Sep 3, 2023
2 parents 5047411 + c732b3b commit b8edf65
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ManagedShell.AppBar/AppBarWindow.cs
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,7 @@ private void AnimateAutoHide(bool isHiding)
animTo = Orientation == Orientation.Horizontal ? DesiredHeight : DesiredWidth;
animTo -= AutoHideShowMargin;

if (AppBarEdge == AppBarEdge.Left || AppBarEdge == AppBarEdge.Top)
if (AppBarEdge == AppBarEdge.Top || AppBarEdge == ((FlowDirection == FlowDirection.LeftToRight) ? AppBarEdge.Left : AppBarEdge.Right))
{
animTo *= -1;
}
Expand Down

0 comments on commit b8edf65

Please sign in to comment.