From 17e3706720a0d6f14a0ec3bd30c6b61ff444b914 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Wiktor=20Obr=C4=99bski?= Date: Thu, 1 Aug 2024 23:26:31 +0200 Subject: [PATCH] Fix journal issue with resize frame --- gui/journal.lua | 6 ------ internal/journal/table_of_contents.lua | 5 +++++ 2 files changed, 5 insertions(+), 6 deletions(-) diff --git a/gui/journal.lua b/gui/journal.lua index 30d5072ca..7a9c153a9 100644 --- a/gui/journal.lua +++ b/gui/journal.lua @@ -13,11 +13,6 @@ local RESIZE_MIN = {w=32, h=10} JOURNAL_PERSIST_KEY = 'journal' -local INVISIBLE_FRAME = { - frame_pen=gui.CLEAR_PEN, - signature_pen=false, -} - journal_config = journal_config or json.open('dfhack-config/journal.json') JournalWindow = defclass(JournalWindow, widgets.Window) @@ -88,7 +83,6 @@ function JournalWindow:init() interior_b=true, frame_style_t=false, - frmae_style=INVISIBLE_FRAME, }, text_editor.TextEditor{ view_id='journal_editor', diff --git a/internal/journal/table_of_contents.lua b/internal/journal/table_of_contents.lua index c325d3ca7..7639cd591 100644 --- a/internal/journal/table_of_contents.lua +++ b/internal/journal/table_of_contents.lua @@ -3,6 +3,11 @@ local gui = require 'gui' local widgets = require 'gui.widgets' +local INVISIBLE_FRAME = { + frame_pen=gui.CLEAR_PEN, + signature_pen=false, +} + TableOfContents = defclass(TableOfContents, widgets.Panel) TableOfContents.ATTRS { frame_style=INVISIBLE_FRAME,