wordpress-mobile / wordpress-mobile/AztecEditor-iOS

Cursor Size Increases on Second Line

Open
#1,398 1 comment 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Swift
Stars
669
Forks
153
Avg merge
11h 27m
Merged PRs (30d)
4

Description

Describe the bug
The cursor size does not match the font size when typing in the editor. The cursor appears much larger than the font size, but this discrepancy only occurs after hitting return to go to a new line. The first line displays the correct cursor size.

To Reproduce
Steps to reproduce the behavior:

  1. Open the Aztec Example app.
  2. Select the “Empty Demo” editor.
  3. Enter some text on the first line.
  4. Press return to go to a new line.
  5. Type some additional text and observe the cursor size, which is larger than the font size.

Expected behavior
The cursor size should match the font size regardless of the line you are typing on.

Screenshots

https://github.com/user-attachments/assets/3cf0c993-8990-4cba-bb4b-780c770b3a7e

image

Smartphone (please complete the following information):

  • Device: iPhone 15 PRO
  • OS: iOS 17.5
  • Version 1.19.11

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the issue in the Aztec Example app using the “Empty Demo” editor, comparing the cursor on the first line with the cursor after pressing return. Done means the cursor matches the entered font size on subsequent lines as well as the first.

Written by the indexing model from the issue text.

Assessment

Tech stack
swift
Domain
mobile
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.