Skip to content

fix(android): sync cursor height with heading block on empty lines#507

Merged
hryhoriiK97 merged 1 commit into
mainfrom
fix/android-heading-cursor-size
Jul 5, 2026
Merged

fix(android): sync cursor height with heading block on empty lines#507
hryhoriiK97 merged 1 commit into
mainfrom
fix/android-heading-cursor-size

Conversation

@hryhoriiK97

Copy link
Copy Markdown
Collaborator

What/Why?

Extend zero-length heading anchor spans to cover the adjacent newline so Android's Layout gives the empty line heading-height metrics. For truly empty text (no character to span), temporarily override the view's textSize to the heading font size and hide the hint.

Testing

PR Checklist

  • Code compiles and runs on iOS
  • Code compiles and runs on Android
  • Updated documentation/README if applicable
  • Ran example app to verify changes
  • E2E tests are passing
  • Required E2E tests have been added (if applicable)

Extend zero-length heading anchor spans to cover the adjacent newline
so Android's Layout gives the empty line heading-height metrics. For
truly empty text (no character to span), temporarily override the
view's textSize to the heading font size and hide the hint.

Co-authored-by: Cursor <cursoragent@cursor.com>
@hryhoriiK97 hryhoriiK97 merged commit 3b361f1 into main Jul 5, 2026
8 checks passed
@hryhoriiK97 hryhoriiK97 deleted the fix/android-heading-cursor-size branch July 5, 2026 10:58
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