MCPcopy Create free account
hub / github.com/TruthHun/BookStack / onResize

Function onResize

static/mergely/lib/codemirror.js:3518–3526  ·  view source on GitHub ↗
(cm)

Source from the content-addressed store, hash-verified

3516
3517 // Called when the window resizes
3518 function onResize(cm) {
3519 var d = cm.display;
3520 if (d.lastWrapHeight == d.wrapper.clientHeight && d.lastWrapWidth == d.wrapper.clientWidth)
3521 return;
3522 // Might be a text scaling operation, clear size caches.
3523 d.cachedCharWidth = d.cachedTextHeight = d.cachedPaddingH = null;
3524 d.scrollbarsClipped = false;
3525 cm.setSize();
3526 }
3527
3528 // MOUSE EVENTS
3529

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected