MCPcopy Index your code
hub / github.com/csev/py4e / onResize

Function onResize

tools/pythonauto/static/codemirror/codemirror.js:1622–1630  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1620
1621 var resizeTimer;
1622 function onResize() {
1623 if (resizeTimer == null) resizeTimer = setTimeout(function() {
1624 resizeTimer = null;
1625 // Might be a text scaling operation, clear size caches.
1626 d.cachedCharWidth = d.cachedTextHeight = d.cachedPaddingH = knownScrollbarWidth = null;
1627 clearCaches(cm);
1628 runInOp(cm, bind(regChange, cm));
1629 }, 100);
1630 }
1631 on(window, "resize", onResize);
1632 // Above handler holds on to the editor and its data structures.
1633 // Here we poll to unregister it when the editor is no longer in

Callers

nothing calls this directly

Calls 3

clearCachesFunction · 0.70
runInOpFunction · 0.70
bindFunction · 0.70

Tested by

no test coverage detected