From 859d85da45d99fb29b1a4b62b21b0c50d8c3d550 Mon Sep 17 00:00:00 2001 From: Daan Vanden Bosch Date: Tue, 17 Sep 2019 12:47:03 +0200 Subject: [PATCH] ASM editor view is now sized correctly again. --- src/quest_editor/gui/AsmEditorView.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/quest_editor/gui/AsmEditorView.ts b/src/quest_editor/gui/AsmEditorView.ts index c70ace1f..8e5bfa3d 100644 --- a/src/quest_editor/gui/AsmEditorView.ts +++ b/src/quest_editor/gui/AsmEditorView.ts @@ -82,7 +82,8 @@ export class AsmEditorView extends ResizableWidget { } resize(width: number, height: number): this { - this.editor.layout({ width, height }); + const editor_height = Math.max(0, height - this.tool_bar_view.height); + this.editor.layout({ width, height: editor_height }); return this; } }