From 890e8e91ea568118567f0d39756719441f1ee404 Mon Sep 17 00:00:00 2001 From: serapath Date: Wed, 6 Dec 2017 16:29:07 +0700 Subject: [PATCH] FIX terminal resize on window resize --- src/app/panels/terminal.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/app/panels/terminal.js b/src/app/panels/terminal.js index 03ca96f41d..966eacdab6 100644 --- a/src/app/panels/terminal.js +++ b/src/app/panels/terminal.js @@ -328,6 +328,11 @@ class Terminal { var placeholder = yo`
${background}${text}
` var inserted = false + window.addEventListener('resize', function (event) { + self.event.trigger('resize', []) + self.event.trigger('resize', []) + }) + function focusinput (event) { if (self._view.journal.offsetHeight - (self._view.term.scrollTop + self._view.term.offsetHeight) < 50) { refocus()