MCPcopy Create free account
hub / github.com/OpenEndedGroup/Field2 / changed

Method changed

lib/web/CodeMirror/src/model/line_widget.js:37–50  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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}
52eventMixin(LineWidget)
53

Callers

nothing calls this directly

Calls 7

widgetHeightFunction · 0.90
lineIsHiddenFunction · 0.90
updateLineHeightFunction · 0.90
runInOpFunction · 0.90
signalLaterFunction · 0.90
lineNoFunction · 0.90

Tested by

no test coverage detected