MCPcopy Index your code
hub / github.com/ronreiter/interactive-tutorials / widgetHeight

Function widgetHeight

static/js/codemirror/codemirror.js:3801–3806  ·  view source on GitHub ↗
(widget)

Source from the content-addressed store, hash-verified

3799 });
3800
3801 function widgetHeight(widget) {
3802 if (widget.height != null) return widget.height;
3803 if (!widget.node.parentNode || widget.node.parentNode.nodeType != 1)
3804 removeChildrenAndAdd(widget.cm.display.measure, elt("div", [widget.node], null, "position: relative"));
3805 return widget.height = widget.node.offsetHeight;
3806 }
3807
3808 function addLineWidget(cm, handle, node, options) {
3809 var widget = new LineWidget(cm, node, options);

Callers 3

intoCoordSystemFunction · 0.85
codemirror.jsFile · 0.85
addLineWidgetFunction · 0.85

Calls 2

removeChildrenAndAddFunction · 0.85
eltFunction · 0.85

Tested by

no test coverage detected