[iOS and Mac] - Blank rendering in FlowDirection right to left from .net 7.0 #14406
Labels
legacy-area-a11y
Relates to accessibility
platform/iOS 🍎
s/triaged
Issue has been reviewed
s/verified
Verified / Reproducible Issue ready for Engineering Triage
t/a11y
Relates to accessibility
t/bug
Something isn't working
Description
If the FlowDirection is RightToLeft and a ContentView is loaded inside a HorizontalStackLayout with a width request that is less than it, the ContentView's content is not presented in the view.
Steps to Reproduce
I have attached the Test sample below
ReproSample.zip
Link to public reproduction project repository
Version with bug
7.0 (current)
Last version that worked well
6.0.424
Affected platforms
iOS, macOS
Affected platform versions
14.2
Did you find any workaround?
https://github.com/dotnet/maui/blob/main/src/Core/src/Handlers/ViewHandlerExtensions.iOS.cs#LL100C48-L100
The method PlatformArrangeHandler uses the PlatformView.Bounds for RTL related conversion; this is OK for the initial call, but not if the same view is arranged more than once for the same X value. The number of arrange gets called the Bounds.X value will be (number of calls) n*CorrectValue.
The correct approach will be using the Rect passed to PlatformArrangeHandler
Relevant log output
The text was updated successfully, but these errors were encountered: