Skip to content

fix: caret positioning for tabs and soft-break lines#3677

Open
garhm wants to merge 5 commits into
superdoc-dev:mainfrom
garhm:fix/tab-caret-jump-fix
Open

fix: caret positioning for tabs and soft-break lines#3677
garhm wants to merge 5 commits into
superdoc-dev:mainfrom
garhm:fix/tab-caret-jump-fix

Conversation

@garhm
Copy link
Copy Markdown

@garhm garhm commented Jun 8, 2026

  • anchor tab caret Y to line top for trailing tab (was bottom-aligned tab box)
  • position soft-break continuation caret at line start, alignment-aware
    (left/center/right), instead of the page right edge

garhm added 3 commits June 8, 2026 14:08
 - anchor tab caret Y to line top for trailing tab (was bottom-aligned tab box)
 - position soft-break continuation caret at line start, alignment-aware
   (left/center/right), instead of the page right edge
 - anchor tab caret Y to line top for trailing tab (was bottom-aligned tab box)
 - position soft-break continuation caret at line start, alignment-aware
   (left/center/right), instead of the page right edge
@garhm garhm requested a review from a team as a code owner June 8, 2026 12:34
Copy link
Copy Markdown
Contributor

@caio-pizzol caio-pizzol left a comment

Choose a reason for hiding this comment

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

@garhm the code path looks right, and I verified this against the real painter DOM.

i pushed a follow-up commit with the missing coverage: behavior tests for soft-break continuation caret geometry and trailing tab Y, plus unit assertions for the painter contracts and zoom/RTL cases.

lgtm once CI is green.

@caio-pizzol caio-pizzol enabled auto-merge June 8, 2026 18:13
@caio-pizzol caio-pizzol self-assigned this Jun 8, 2026
@codecov-commenter
Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants