From 23a0f43758714c11ca25c9ee515d0f0ca2abf7d8 Mon Sep 17 00:00:00 2001 From: Mark Qvist Date: Fri, 14 May 2021 17:33:58 +0200 Subject: [PATCH] IndicativeListBox info exposed for navigation --- .../additional_urwid_widgets/widgets/indicative_listbox.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/nomadnet/vendor/additional_urwid_widgets/widgets/indicative_listbox.py b/nomadnet/vendor/additional_urwid_widgets/widgets/indicative_listbox.py index f49bd52..d4f18dc 100644 --- a/nomadnet/vendor/additional_urwid_widgets/widgets/indicative_listbox.py +++ b/nomadnet/vendor/additional_urwid_widgets/widgets/indicative_listbox.py @@ -183,6 +183,9 @@ class IndicativeListBox(urwid.WidgetWrap): # Store the last focus to do/undo the off focus highlighting only if the focus has really changed and not if the # widget is re-rendered because the terminal size has changed or similar. self._last_focus_state = focus + + self.top_is_visible = top_is_visible + self.bottom_is_visible = bottom_is_visible return super().render(size, focus=focus)