FIX terminal resize on window resize

pull/3094/head
serapath 7 years ago
parent 0410078212
commit 70b6141fe4
  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