Commit 890e8e91 authored by serapath's avatar serapath

FIX terminal resize on window resize

parent 79021679
...@@ -328,6 +328,11 @@ class Terminal { ...@@ -328,6 +328,11 @@ class Terminal {
var placeholder = yo`<div class=${css2.anchor}>${background}${text}</div>` var placeholder = yo`<div class=${css2.anchor}>${background}${text}</div>`
var inserted = false var inserted = false
window.addEventListener('resize', function (event) {
self.event.trigger('resize', [])
self.event.trigger('resize', [])
})
function focusinput (event) { function focusinput (event) {
if (self._view.journal.offsetHeight - (self._view.term.scrollTop + self._view.term.offsetHeight) < 50) { if (self._view.journal.offsetHeight - (self._view.term.scrollTop + self._view.term.offsetHeight) < 50) {
refocus() refocus()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment