summary refs log tree commit diff stats
path: root/ranger
diff options
context:
space:
mode:
authorhut <hut@lavabit.com>2013-03-17 22:37:12 +0100
committerhut <hut@lavabit.com>2013-03-17 22:37:12 +0100
commitb0a0e3882378da7a7c75019c04380507cfdaecf3 (patch)
tree635412cd2b9c1de213a0f8399f692f310dfc029e /ranger
parentd7f3d7dc8631abe931a1205f12d7f11e9929f1fb (diff)
downloadranger-b0a0e3882378da7a7c75019c04380507cfdaecf3.tar.gz
widgets.browserview: resize when toggling draw_borders
Diffstat (limited to 'ranger')
-rw-r--r--ranger/gui/widgets/browserview.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/ranger/gui/widgets/browserview.py b/ranger/gui/widgets/browserview.py
index 39d57c5a..ee846f30 100644
--- a/ranger/gui/widgets/browserview.py
+++ b/ranger/gui/widgets/browserview.py
@@ -40,6 +40,8 @@ class BrowserView(Widget, DisplayableContainer):
         self.fm.signal_bind('move', self.request_clear)
         self.settings.signal_bind('setopt.column_ratios', self.request_clear)
 
+        self.old_draw_borders = self.settings.draw_borders
+
     def change_ratios(self, ratios):
         if isinstance(ratios, Signal):
             ratios = ratios.value
@@ -360,3 +362,7 @@ class BrowserView(Widget, DisplayableContainer):
                 # force clearing the image when resizing preview column
                 self.columns[-1].clear_image(force=True)
             self.resize(self.y, self.x, self.hei, self.wid)
+
+        if self.old_draw_borders != self.settings.draw_borders:
+            self.resize(self.y, self.x, self.hei, self.wid)
+            self.old_draw_borders = self.settings.draw_borders