MCPcopy Index your code
hub / github.com/witheve/Eve / hasBadZoomedRects

Function hasBadZoomedRects

src/codemirror.js:8595–8601  ·  view source on GitHub ↗
(measure)

Source from the content-addressed store, hash-verified

8593
8594 var badZoomedRects = null;
8595 function hasBadZoomedRects(measure) {
8596 if (badZoomedRects != null) return badZoomedRects;
8597 var node = removeChildrenAndAdd(measure, elt("span", "x"));
8598 var normal = node.getBoundingClientRect();
8599 var fromRange = range(node, 0, 1).getBoundingClientRect();
8600 return badZoomedRects = Math.abs(normal.left - fromRange.left) > 1;
8601 }
8602
8603 // KEY NAMES
8604

Callers 1

Calls 2

removeChildrenAndAddFunction · 0.85
eltFunction · 0.85

Tested by

no test coverage detected