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

Fix ContentView RTL #15114

Merged
merged 3 commits into from
May 19, 2023
Merged

Fix ContentView RTL #15114

merged 3 commits into from
May 19, 2023

Conversation

PureWeen
Copy link
Member

@PureWeen PureWeen commented May 16, 2023

Description of Change

The logic in the iOS platform arrangement handler has faulty logic which sometimes gives child views negative X positions within their parent views; this happens when the flow direction is set to RTL and it makes the child views disappear.

These changes fix the logic to avoid disappearing the views and adds an automated test to guard against this in the future.

Issues Fixed

Fixes #15095

@PureWeen PureWeen requested a review from hartez May 16, 2023 18:02
@Eilon Eilon added the area-layout StackLayout, GridLayout, ContentView, AbsoluteLayout, FlexLayout, ContentPresenter label May 16, 2023
@hartez hartez marked this pull request as ready for review May 18, 2023 20:44
@github-actions
Copy link
Contributor

Thank you for your pull request. We are auto-formatting your source code to follow our code guidelines.

@mattleibow mattleibow changed the title Fix contentview rtl Fix ContentView RTL May 19, 2023
@PureWeen PureWeen merged commit 7cce2f4 into main May 19, 2023
@PureWeen PureWeen deleted the fix_contentview_rtl branch May 19, 2023 16:08
@hichamboushaba
Copy link

Thanks @PureWeen for the fix, is this going to be backported to net7? it's a big issue that impacts all apps using RTL.

@mattleibow mattleibow added the backport/suggested The PR author or issue review has suggested that the change should be backported. label May 22, 2023
rmarinho pushed a commit that referenced this pull request May 30, 2023
* Avoid negative X position values when arranging for RTL
Fixes #15095

* Add automated test

* Auto-format source code

---------

Co-authored-by: E.Z. Hart <hartez@gmail.com>
Co-authored-by: GitHub Actions Autoformatter <autoformat@example.com>
@hartez hartez added the backport/NO This change should not be backported. It may break customers. label Jun 7, 2023
@github-actions github-actions bot locked and limited conversation to collaborators Dec 10, 2023
@samhouts samhouts added the fixed-in-8.0.0-preview.5.8529 Look for this fix in 8.0.0-preview.5.8529! label Aug 2, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area-layout StackLayout, GridLayout, ContentView, AbsoluteLayout, FlexLayout, ContentPresenter backport/NO This change should not be backported. It may break customers. backport/suggested The PR author or issue review has suggested that the change should be backported. fixed-in-8.0.0-preview.5.8529 Look for this fix in 8.0.0-preview.5.8529!
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[iOS] ContentViews and Grids not rendered properly in right-to-left cultures
6 participants