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

In placeAutoMirrored for RTL, calculate the placement position using the placeable width respecting the constraints #267

Merged
merged 1 commit into from
Aug 9, 2022

Conversation

eymar
Copy link
Collaborator

@eymar eymar commented Aug 9, 2022

It used to calculate the position using measuredSize.width which doesn't respect the constraints, and therefore the position could end up outside of the parent's bounds.

Test: run ui and foundation-layout tests, added an additional demo to RtlDemo
Change-Id: I946079669ef6ad783708d9f958dd4231188451c5

Cherry-picked from CL:
https://android-review.googlesource.com/c/platform/frameworks/support/+/2172328

…the placeable width respecting the constraints

It used to calculate the position using `measuredSize.width` which doesn't respect the constraints, and therefore the position could end up outside of the parent's bounds.

Test: run ui and foundation-layout tests, added an additional demo to RtlDemo
Change-Id: I946079669ef6ad783708d9f958dd4231188451c5
@eymar eymar merged commit b70a3b0 into jb-main Aug 9, 2022
@eymar eymar deleted the cherry-pick-cl-2172328 branch August 9, 2022 08:24
igordmn pushed a commit that referenced this pull request Aug 18, 2022
…the placeable width respecting the constraints (#267)

It used to calculate the position using `measuredSize.width` which doesn't respect the constraints, and therefore the position could end up outside of the parent's bounds.

Test: run ui and foundation-layout tests, added an additional demo to RtlDemo
Change-Id: I946079669ef6ad783708d9f958dd4231188451c5

Co-authored-by: Oleksandr Karpovich <oleksandr.karpovich@jetbrains.com>
igordmn pushed a commit that referenced this pull request Aug 18, 2022
…the placeable width respecting the constraints (#267)

It used to calculate the position using `measuredSize.width` which doesn't respect the constraints, and therefore the position could end up outside of the parent's bounds.

Test: run ui and foundation-layout tests, added an additional demo to RtlDemo
Change-Id: I946079669ef6ad783708d9f958dd4231188451c5

Co-authored-by: Oleksandr Karpovich <oleksandr.karpovich@jetbrains.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant