Resize xterm.js when window is resized

This commit is contained in:
embeddedt 2019-07-06 16:13:38 -04:00 committed by GitHub
parent cf45bcc25d
commit 1381be71fb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -225,6 +225,9 @@
editor.getSession().on('change', editor_change);
editor.resize();
});
$(window).resize(function() {
editor.resize();
});
</script>
</body>
</html>