Rendering Notes: all rendering is done in Render call. Layout must be called whenever content changes across lines. NeedsLayout indicates that the [Editor] needs a new layout pass.
()
| 25 | |
| 26 | // NeedsLayout indicates that the [Editor] needs a new layout pass. |
| 27 | func (ed *Editor) NeedsLayout() { |
| 28 | ed.NeedsRender() |
| 29 | ed.needsLayout = true |
| 30 | } |
| 31 | |
| 32 | func (ed *Editor) renderLayout() { |
| 33 | chg := ed.ManageOverflow(3, true) |
no test coverage detected