(widget)
| 5462 | }; |
| 5463 | |
| 5464 | function widgetHeight(widget) { |
| 5465 | if (widget.height != null) return widget.height; |
| 5466 | if (!contains(document.body, widget.node)) |
| 5467 | removeChildrenAndAdd(widget.cm.display.measure, elt("div", [widget.node], null, "position: relative")); |
| 5468 | return widget.height = widget.node.offsetHeight; |
| 5469 | } |
| 5470 | |
| 5471 | function addLineWidget(cm, handle, node, options) { |
| 5472 | var widget = new LineWidget(cm, node, options); |
no test coverage detected