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

Function onResize

GUI/codemirror/lib/codemirror.js:2391–2398  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

2389 // When the window resizes, we need to refresh active editors.
2390 var resizeTimer;
2391 function onResize() {
2392 if (resizeTimer == null) resizeTimer = setTimeout(function() {
2393 resizeTimer = null;
2394 // Might be a text scaling operation, clear size caches.
2395 d.cachedCharWidth = d.cachedTextHeight = d.cachedPaddingH = knownScrollbarWidth = null;
2396 cm.setSize();
2397 }, 100);
2398 }
2399 on(window, "resize", onResize);
2400 // The above handler holds on to the editor and its data
2401 // structures. Here we poll to unregister it when the editor is no

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…