Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[iOS and Mac] - Blank rendering in FlowDirection right to left from .net 7.0 #14406

Closed
RanjithkumarSyncfusion opened this issue Apr 5, 2023 · 2 comments
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

Comments

@RanjithkumarSyncfusion
Copy link

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

{{914, 0}, {50, 756}}
{{1828, 0}, {50, 756}}
{{2742, 0}, {50, 720}}
{{3656, 0}, {50, 720}}
{{4570, 0}, {50, 720}}
@RanjithkumarSyncfusion RanjithkumarSyncfusion added the t/bug Something isn't working label Apr 5, 2023
@Zhanglirong-Winnie Zhanglirong-Winnie added s/verified Verified / Reproducible Issue ready for Engineering Triage s/triaged Issue has been reviewed labels Jun 12, 2023
@Zhanglirong-Winnie
Copy link

Verified this issue with 17.6 Preview (17.6 build 1539). Can repro on iOS and macOS platform with sample project.
ReproSample.zip
Screenshot 2023-06-12 165422
Screenshot 2023-06-12 170048

@hartez
Copy link
Contributor

hartez commented Jun 12, 2023

This is fixed by #15114.

@hartez hartez closed this as completed Jun 12, 2023
@ghost ghost locked as resolved and limited conversation to collaborators Jul 13, 2023
@Eilon Eilon added the t/a11y Relates to accessibility label May 13, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
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
Projects
None yet
Development

No branches or pull requests

5 participants