From 9d17be84a859ec5496df4f98f83904bbd06e7ac9 Mon Sep 17 00:00:00 2001 From: myk002 Date: Mon, 28 Nov 2022 15:13:41 -0800 Subject: [PATCH] set width to something representative on init so if the widget is enabled in gui/overlay without ever being resized with real data, it won't be truncated --- plugins/lua/dwarfmonitor.lua | 1 + 1 file changed, 1 insertion(+) diff --git a/plugins/lua/dwarfmonitor.lua b/plugins/lua/dwarfmonitor.lua index 5358e4289..ff98d12ca 100644 --- a/plugins/lua/dwarfmonitor.lua +++ b/plugins/lua/dwarfmonitor.lua @@ -111,6 +111,7 @@ MiseryWidget.ATTRS{ function MiseryWidget:init() self.colors = getStressCategoryColors() self.stress_category_counts = {} + self.frame.w = 2*#self.colors + 1 end function MiseryWidget:overlay_onupdate()