From 8b61ed5cc468702aba0c9ae608036914818f4d81 Mon Sep 17 00:00:00 2001 From: Chris Jones Date: Fri, 31 Aug 2007 20:56:56 +0100 Subject: [PATCH] Fix bug where window grows in width when a scrollbar is hidden and reshown --- terminator | 3 +++ 1 file changed, 3 insertions(+) diff --git a/terminator b/terminator index bb3e87f2..40bfb3dc 100755 --- a/terminator +++ b/terminator @@ -31,6 +31,7 @@ import pango import gnome import time import getopt +import math class TerminatorTerm: lastreconfigure = 0 @@ -236,6 +237,8 @@ class TerminatorTerm: if self._scrollbar.get_property ('visible'): self._scrollbar.hide () else: + # We need to make the terminal narrower by the width of the scrollbar + self._vte.set_size (self._vte.get_column_count () - int(math.ceil(self._scrollbar.allocation.width / self._vte.get_char_width ())), self._vte.get_row_count ()) self._scrollbar.show () def on_vte_popup_menu (self, term):