From 241201657c2bf01806d02a297eb846b26102a479 Mon Sep 17 00:00:00 2001 From: Oleg Lobanov Date: Thu, 18 Jun 2020 19:21:02 +0200 Subject: [PATCH] fix: add a workaround to fix window freezing when viewing a large file #992 --- frontend/src/components/files/Editor.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/src/components/files/Editor.vue b/frontend/src/components/files/Editor.vue index 993004a7..8f34d48f 100644 --- a/frontend/src/components/files/Editor.vue +++ b/frontend/src/components/files/Editor.vue @@ -33,7 +33,7 @@ export default { const fileContent = this.req.content || ''; this.editor = ace.edit('editor', { - maxLines: Infinity, + maxLines: 80, minLines: 20, value: fileContent, showPrintMargin: false,