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

Function positionLineWidget

GUI/codemirror/lib/codemirror.js:919–935  ·  view source on GitHub ↗
(widget, node, lineView, dims)

Source from the content-addressed store, hash-verified

917 }
918
919 function positionLineWidget(widget, node, lineView, dims) {
920 if (widget.noHScroll) {
921 (lineView.alignable || (lineView.alignable = [])).push(node);
922 var width = dims.wrapperWidth;
923 node.style.left = dims.fixedPos + "px";
924 if (!widget.coverGutter) {
925 width -= dims.gutterTotalWidth;
926 node.style.paddingLeft = dims.gutterTotalWidth + "px";
927 }
928 node.style.width = width + "px";
929 }
930 if (widget.coverGutter) {
931 node.style.zIndex = 5;
932 node.style.position = "relative";
933 if (!widget.noHScroll) node.style.marginLeft = -dims.gutterTotalWidth + "px";
934 }
935 }
936
937 // POSITION OBJECT
938

Callers 1

insertLineWidgetsForFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…