Module: deluge
Branch: master
Commit: 5f888facebdc6a7e9d41421b069d97c55d007ddb

Author: Nick <[email protected]>
Date:   Wed Feb  2 13:11:15 2011 +0100

handle resize in torrentdetail

---

 deluge/ui/console/modes/torrentdetail.py |    8 ++++++++
 1 files changed, 8 insertions(+), 0 deletions(-)

diff --git a/deluge/ui/console/modes/torrentdetail.py 
b/deluge/ui/console/modes/torrentdetail.py
index 0620467..a337a48 100644
--- a/deluge/ui/console/modes/torrentdetail.py
+++ b/deluge/ui/console/modes/torrentdetail.py
@@ -63,6 +63,7 @@ class TorrentDetail(BaseMode, component.Component):
         self.alltorrentmode = alltorrentmode
         self.torrentid = torrentid
         self.torrent_state = None
+        self.popup = None
         self._status_keys = ["files", 
"name","state","download_payload_rate","upload_payload_rate",
                              
"progress","eta","all_time_download","total_uploaded", "ratio",
                              
"num_seeds","total_seeds","num_peers","total_peers", "active_time",
@@ -263,6 +264,13 @@ class TorrentDetail(BaseMode, component.Component):
 
         return (off,idx)
 
+    def on_resize(self, *args):
+        BaseMode.on_resize_norefresh(self, *args)
+        self._update_columns()
+        if self.popup:
+            self.popup.handle_resize()
+        self.refresh()
+
     def refresh(self,lines=None):
         # Update the status bars
         self.stdscr.clear()

-- 
You received this message because you are subscribed to the Google Groups 
"deluge-commit" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/deluge-commit?hl=en.

Reply via email to