FIX terminal resize on window resize

pull/1/head
serapath 7 years ago
parent 79021679a2
commit 890e8e91ea
  1. 5
      src/app/panels/terminal.js

@ -328,6 +328,11 @@ class Terminal {
var placeholder = yo`<div class=${css2.anchor}>${background}${text}</div>`
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()

Loading…
Cancel
Save