Updated nomadnet to use Urwid 2.4.2

This commit is contained in:
Mark Qvist 2024-01-15 19:40:01 +01:00
parent 910e527cc7
commit 0ed4e09b82
4 changed files with 10 additions and 8 deletions

View file

@ -268,10 +268,10 @@ class Scrollable(urwid.WidgetDecoration):
def _get_original_widget_size(self, size):
ow = self._original_widget
sizing = ow.sizing()
if FIXED in sizing:
return ()
elif FLOW in sizing:
if FLOW in sizing:
return (size[0],)
elif FIXED in sizing:
return ()
def get_scrollpos(self, size=None, focus=False):
"""Current scrolling position