Skip to content

Text wrapping can fail and hide characters in code examples (TextEdit) #99

Open
@duianto

Description

@duianto

Describe the bug
Code example, last letter hidden.

To Reproduce
Steps to reproduce the bug:

  1. Go to: 1. What Code is Like
    https://gdquest.github.io/learn-gdscript/#course/lesson-1-what-code-is-like/lesson.tres

  2. Scroll down to the code example

  3. See the missing letter n at the end of line 2:

    Vector2(0, 0), # position

smallest (default) text size, missing last letter

This is observed with the Text Size slider dragged to the left (default).

Expected behavior
The last letter on the line should be visible,
or the line should wrap to show the last word on the next line.

The word position does become wrapped,
when the Text Size slider is dragged to the middle.

middle text size, comment wrapped

Or to the right.

largest text size, comment wrapped

But the last word position also remains wrapped,
when the Text Size slider is dragged to the left, from the middle or the right.

smallest text size, after middle or large, comment wrapped

Reloading the page with the smallest Text Size.
Restores the initial behavior. Now the last letter n is missing again.
As observed in the first screenshot.

Information about your device (please complete the following information):

  • Operating System: Windows 10 21H1
  • Browser: Microsoft Edge 96.0.1054.62 (Official build) (64-bit)

Additional context
In this case, it only hides the last letter of a comment.
And the following lessons, might not be hiding any important characters.

But if/when the code examples are refactored/typo fixed, etc.,
then this issue might appear in the future.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working as intendedgodot-engineThis task likely requires making changes in the Godot enginewontfixThis will not be worked on

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions