Repository navigation
fix(driver): place right-aligned single-line text by its right end - #2769
Merged
Merged
Conversation
Fixes #2766 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
The |
oneo-me
marked this pull request as ready for review
November 29, 2026 14:55
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Drawing.FillTextandStrokeTextdrewTextAlignRighttext as if it were start-aligned, againstSetTextAlign's documentation; they now offset it by its width asTextAlignEndandFillTextBoxdo.TextAlignLeft, like start, keeps the text's left end atxwhatever its direction, which a test now pins. Every backend draws the op atX+X1, so the fix in the recorder covers them all.Fixes #2766
Targets
core,base,ui,tsx, thensgotool)Screenshots
None
Verification
271616beb345297b91b6afa4f20e945a8fa16937f59bb7a1663179b46eff96e9126749d25c5cece3go tool nsgo check→ 0go tool nsgo test→ 1 (5505 passed, 1 failed:TestQuickLookThumbnailDrawsTheAppOffTheScreen, "1 surfaces left open", unrelated to this change; it passed in three runs of its own)go tool nsgo test -run TestQuickLookThumbnailDrawsTheAppOffTheScreen ./internal/platform/macos/→ 0failChecklist
fix(linux): keep the caret after a paste; a squash merge uses it as the commit subject.changelog.d/fragment, not inCHANGELOG.md.🤖 Claude Opus 5.5
🤖 Generated with Claude Code