[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[tor-commits] [nyx/master] Stretch descriptor dialog to include title
commit cb89c5e987fdcabdaa75b1487f1459d0ca93415d
Author: Damian Johnson <atagar@xxxxxxxxxxxxxx>
Date: Sat Oct 28 17:37:23 2017 -0700
Stretch descriptor dialog to include title
If the dialog's title is shorter than the content (which happens when we lack
descriptors) the dialog crops the title.
---
nyx/popups.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/nyx/popups.py b/nyx/popups.py
index 96e9126..eaa2148 100644
--- a/nyx/popups.py
+++ b/nyx/popups.py
@@ -228,7 +228,7 @@ def show_descriptor(fingerprint, color, is_close_key):
subwindow.box()
subwindow.addstr(0, 0, title, HIGHLIGHT)
- width, height = 0, len(lines) + 2
+ width, height = len(title), len(lines) + 2
screen_size = nyx.curses.screen_size()
for line in lines:
_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits