MCPcopy Create free account
hub / github.com/sql-js/sql.js / widgetHeight

Function widgetHeight

GUI/codemirror/lib/codemirror.js:5507–5512  ·  view source on GitHub ↗
(widget)

Source from the content-addressed store, hash-verified

5505 };
5506
5507 function widgetHeight(widget) {
5508 if (widget.height != null) return widget.height;
5509 if (!contains(document.body, widget.node))
5510 removeChildrenAndAdd(widget.cm.display.measure, elt("div", [widget.node], null, "position: relative"));
5511 return widget.height = widget.node.offsetHeight;
5512 }
5513
5514 function addLineWidget(cm, handle, node, options) {
5515 var widget = new LineWidget(cm, node, options);

Callers 3

intoCoordSystemFunction · 0.85
codemirror.jsFile · 0.85
addLineWidgetFunction · 0.85

Calls 3

containsFunction · 0.85
removeChildrenAndAddFunction · 0.85
eltFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…