ajaxorg / ajaxorg/ace

Renderer: setGhostText not respecting Padding

未關閉
#5,821 3 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視
bug p1
主要語言
JavaScript
星號
27.1k
分支
5.3k
PR 合併指標
30 天內沒有已合併 PR

描述

### 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](https://github.com/user-attachments/assets/60f96dee-791e-48bf-9722-1e368384b9a2)

### 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)

貢獻指南

開啟貢獻指南

評估

這個 Issue 還沒有評估資料。

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。