()
| 35 | } |
| 36 | |
| 37 | changed() { |
| 38 | let oldH = this.height, cm = this.doc.cm, line = this.line |
| 39 | this.height = null |
| 40 | let diff = widgetHeight(this) - oldH |
| 41 | if (!diff) return |
| 42 | if (!lineIsHidden(this.doc, line)) updateLineHeight(line, line.height + diff) |
| 43 | if (cm) { |
| 44 | runInOp(cm, () => { |
| 45 | cm.curOp.forceUpdate = true |
| 46 | adjustScrollWhenAboveVisible(cm, line, diff) |
| 47 | signalLater(cm, "lineWidgetChanged", cm, this, lineNo(line)) |
| 48 | }) |
| 49 | } |
| 50 | } |
| 51 | } |
| 52 | eventMixin(LineWidget) |
| 53 |
nothing calls this directly
no test coverage detected