summaryrefslogtreecommitdiff
path: root/app/assets/javascripts/terminal
diff options
context:
space:
mode:
authorFilipa Lacerda <filipa@gitlab.com>2018-08-03 13:41:33 +0100
committerFilipa Lacerda <filipa@gitlab.com>2018-08-03 14:26:23 +0100
commit0116930bb0ae30bcb7b43b87371f1418e74661f1 (patch)
treefd6ff8d279767b67649109fc7c8e1fb0c2f6e6bc /app/assets/javascripts/terminal
parent77c189a9a7687849eac438a2850c6a106b371399 (diff)
downloadgitlab-ce-0116930bb0ae30bcb7b43b87371f1418e74661f1.tar.gz
Uses npm css and removes css from vendor folder
Diffstat (limited to 'app/assets/javascripts/terminal')
-rw-r--r--app/assets/javascripts/terminal/terminal.js2
1 files changed, 2 insertions, 0 deletions
diff --git a/app/assets/javascripts/terminal/terminal.js b/app/assets/javascripts/terminal/terminal.js
index ead208bafec..8a94c9f4fe1 100644
--- a/app/assets/javascripts/terminal/terminal.js
+++ b/app/assets/javascripts/terminal/terminal.js
@@ -19,6 +19,7 @@ export default class GLTerminal {
this.setSocketUrl();
this.createTerminal();
+
$(window)
.off('resize.terminal')
.on('resize.terminal', () => {
@@ -45,6 +46,7 @@ export default class GLTerminal {
this.socket.binaryType = 'arraybuffer';
this.terminal.open(this.container);
+ this.terminal.fit();
this.socket.onopen = () => {
this.runTerminal();