[tor-commits] [nyx/master] Base event dialog height to what we need
atagar at torproject.org
atagar at torproject.org
Sun May 15 18:04:29 UTC 2016
commit c548b1096ce24772a9bc1a65ee3b91b12d756473
Author: Damian Johnson <atagar at torproject.org>
Date: Sun May 15 11:02:38 2016 -0700
Base event dialog height to what we need
Using a dynamic rather than static height for our event dialog so it grows and
shrinks to match the number of events tor has.
---
nyx/popups.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/nyx/popups.py b/nyx/popups.py
index 905b734..9163166 100644
--- a/nyx/popups.py
+++ b/nyx/popups.py
@@ -473,7 +473,7 @@ def new_select_event_types(initial_selection):
with nyx.curses.CURSES_LOCK:
while True:
- nyx.curses.draw(_render, top = _top(), width = 80, height = 16)
+ nyx.curses.draw(_render, top = _top(), width = 80, height = (len(events) / 3) + 7)
key = nyx.curses.key_input()
if key.match('up'):
More information about the tor-commits
mailing list