mirror of
https://github.com/markqvist/NomadNet.git
synced 2026-10-25 18:40:13 -04:00
Cleanup
This commit is contained in:
parent
c0091dbf31
commit
4fecb706d8
1 changed files with 0 additions and 8 deletions
|
|
@ -308,9 +308,7 @@ def render_table(lines, state, url_delegate):
|
|||
return widgets if widgets else None
|
||||
|
||||
class FormColumns(urwid.Columns):
|
||||
|
||||
MIN_FIELD_WIDTH = 4
|
||||
|
||||
|
||||
@staticmethod
|
||||
def _natural_width(widget, maxcol, focused):
|
||||
|
|
@ -354,14 +352,8 @@ class FormColumns(urwid.Columns):
|
|||
return super().column_widths(size, focus)
|
||||
|
||||
if available < self.MIN_FIELD_WIDTH * len(field_idxs):
|
||||
|
||||
return super().column_widths(size, focus)
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
overflow = requested - available
|
||||
slack = {i: max(0, nat[i] - self.MIN_FIELD_WIDTH) for i in field_idxs}
|
||||
total_slack = sum(slack.values())
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue