Skip to content

Renderer: setGhostText not respecting Padding #5821

Open
@RickStrahl

Description

@RickStrahl

Describe the bug

When the editor has padding and you use editor.setGhostText() the ghost text renders at the left margin, rather than at the padded location.

Image

Expected Behavior

Ghost text should flow in the same space as the editor text and in this case respect the padding set on the editor.

Current Behavior

see image

Reproduction Steps

see image

  • Open Kitchen Sink (in Markdown mode)
  • editor.renderer.setPadding(100)
  • editor.setGhostText("Some long text that will wrap across multiple lines")

Possible Solution

No response

Additional Information/Context

No response

Ace Version / Browser / OS / Keyboard layout

1.41 (latest online version)

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions