Skip to content

Fixing alignment issue#187518

Open
Rusino wants to merge 3 commits into
flutter:masterfrom
Rusino:alignment
Open

Fixing alignment issue#187518
Rusino wants to merge 3 commits into
flutter:masterfrom
Rusino:alignment

Conversation

@Rusino
Copy link
Copy Markdown
Contributor

@Rusino Rusino commented Jun 3, 2026

  1. When LTR default and right align or RTL default and left align
  2. Ellipsis in these two cases should eliminate hanging spaces

Part of #172561

when LTR default and right align or RTL default and left align
ellipsis in these two cases should eliminate hanging spaces
@flutter-dashboard flutter-dashboard Bot added the CICD Run CI/CD label Jun 3, 2026
@flutter-dashboard
Copy link
Copy Markdown

It looks like this pull request may not have tests. Please make sure to add tests or get an explicit test exemption before merging.

If you are not sure if you need tests, consider this rule of thumb: the purpose of a test is to make sure someone doesn't accidentally revert the fix. Ask yourself, is there anything in your PR that you feel it is important we not accidentally revert back to how it was before your fix?

Reviewers: Read the Tree Hygiene page and make sure this patch meets those guidelines before LGTMing. If you believe this PR qualifies for a test exemption, contact "@test-exemption-reviewer" in the #hackers channel in Discord (don't just cc them here, they won't see it!). The test exemption team is a small volunteer group, so all reviewers should feel empowered to ask for tests, without delegating that responsibility entirely to the test exemption group.

@github-actions github-actions Bot added engine flutter/engine related. See also e: labels. platform-web Web applications specifically team-web Owned by Web platform team labels Jun 3, 2026
Copy link
Copy Markdown
Contributor

@gemini-code-assist gemini-code-assist Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request updates the text layout alignment logic in layout.dart to handle left and right alignments for LTR and RTL text directions, and adjusts trailing space handling when an ellipsis block is present. The review feedback identifies a bug where a local variable is updated instead of the line.trailingSpacesWidth property, and points out a redundant assignment to line.formattingShift that is immediately overwritten.

Comment thread engine/src/flutter/lib/web_ui/lib/src/engine/web_paragraph/layout.dart Outdated
@github-actions github-actions Bot removed the CICD Run CI/CD label Jun 3, 2026
@mdebbar mdebbar added the CICD Run CI/CD label Jun 3, 2026
mdebbar
mdebbar previously approved these changes Jun 3, 2026
@github-actions github-actions Bot removed the CICD Run CI/CD label Jun 4, 2026
@Rusino Rusino added the CICD Run CI/CD label Jun 4, 2026
@Rusino Rusino requested a review from mdebbar June 4, 2026 17:06
@Rusino Rusino self-assigned this Jun 4, 2026
@flutter-dashboard
Copy link
Copy Markdown

Golden file changes have been found for this pull request. Click here to view and triage (e.g. because this is an intentional change).

If you are still iterating on this change and are not ready to resolve the images on the Flutter Gold dashboard, consider marking this PR as a draft pull request above. You will still be able to view image results on the dashboard, commenting will be silenced, and the check will not try to resolve itself until marked ready for review.

For more guidance, visit Writing a golden file test for package:flutter.

Reviewers: Read the Tree Hygiene page and make sure this patch meets those guidelines before LGTMing.

Changes reported for pull request #187518 at sha f0d4f7f

@flutter-dashboard flutter-dashboard Bot added the will affect goldens Changes to golden files label Jun 4, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CICD Run CI/CD engine flutter/engine related. See also e: labels. platform-web Web applications specifically team-web Owned by Web platform team will affect goldens Changes to golden files

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants