From 0b1004f2b8910589000af52663e2bb805cd1d28d Mon Sep 17 00:00:00 2001 From: Eric Wald Date: Sun, 15 May 2016 09:14:30 -0600 Subject: [PATCH] Notice resizing immediately, instead of on next key press --- plugins/lua/stockflow.lua | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/plugins/lua/stockflow.lua b/plugins/lua/stockflow.lua index 0728b8db8..b5fd186cc 100644 --- a/plugins/lua/stockflow.lua +++ b/plugins/lua/stockflow.lua @@ -798,6 +798,11 @@ screen = gui.FramedScreen { function screen:onRenderBody(dc) -- Emulates the built-in manager screen. + if not (self.page_size == self.frame_rect.height - ExtraLines) then + -- The screen size has changed. + self:refilter() + end + -- Top instruction line. dc:seek(1, 1):string("Type in parts of the name to narrow your search. ", COLOR_WHITE) dc:key("LEAVESCREEN"):string(" to abort.", COLOR_WHITE)