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
develop
myk002 2022-11-28 15:13:41 -08:00 committed by Myk
parent c866f3f155
commit 9d17be84a8
1 changed files with 1 additions and 0 deletions

@ -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()