(widget)
| 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); |
no test coverage detected
searching dependent graphs…