Skip to content

Commit de39111

Browse files
Vignesh-SF3580PureWeen
authored andcommitted
Fixed testcase failures in PR28867. (#28889)
1 parent 729aba2 commit de39111

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/Core/src/Handlers/ScrollView/ScrollViewHandler.Windows.cs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,11 @@ public static void MapVerticalScrollBarVisibility(IScrollViewHandler handler, IS
6767

6868
public static void MapOrientation(IScrollViewHandler handler, IScrollView scrollView)
6969
{
70-
handler.PlatformView?.UpdateScrollBarVisibility(scrollView.Orientation, scrollView.HorizontalScrollBarVisibility);
70+
var scrollBarVisibility = scrollView.Orientation == ScrollOrientation.Horizontal
71+
? scrollView.HorizontalScrollBarVisibility
72+
: scrollView.VerticalScrollBarVisibility;
73+
74+
handler.PlatformView?.UpdateScrollBarVisibility(scrollView.Orientation, scrollBarVisibility);
7175
}
7276

7377
public static void MapRequestScrollTo(IScrollViewHandler handler, IScrollView scrollView, object? args)

0 commit comments

Comments
 (0)