MCPcopy Create free account
hub / github.com/ronreiter/interactive-tutorials / onResize

Function onResize

static/js/codemirror/codemirror.js:1436–1441  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1434 on(d.wrapper, "scroll", function() { d.wrapper.scrollTop = d.wrapper.scrollLeft = 0; });
1435
1436 function onResize() {
1437 // Might be a text scaling operation, clear size caches.
1438 d.cachedCharWidth = d.cachedTextHeight = null;
1439 clearCaches(cm);
1440 runInOp(cm, bind(regChange, cm));
1441 }
1442 on(window, "resize", onResize);
1443 // Above handler holds on to the editor and its data structures.
1444 // Here we poll to unregister it when the editor is no longer in

Callers

nothing calls this directly

Calls 3

clearCachesFunction · 0.85
runInOpFunction · 0.85
bindFunction · 0.85

Tested by

no test coverage detected