diff options
author | Walter Bender <walter.bender@gmail.com> | 2013-02-25 01:21:57 (GMT) |
---|---|---|
committer | Walter Bender <walter.bender@gmail.com> | 2013-02-25 01:21:57 (GMT) |
commit | 3bc72418944ec0bfcb1efbc6f23a4882e9d0699c (patch) | |
tree | 120f5dac3e1b8c38ecabbaa42b7a00e369eae4b1 | |
parent | 56a49a18e4e77fcf039b3b4e86e05b254545fa89 (diff) |
more robust toolbar resizing algorithm
-rw-r--r-- | abacus_window.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/abacus_window.py b/abacus_window.py index 59bfeb7..3085471 100644 --- a/abacus_window.py +++ b/abacus_window.py @@ -797,10 +797,12 @@ class Abacus(): self.height = Gdk.Screen.height() - GRID_CELL_SIZE if self.width > self.height: self.scale = 1.33 * Gdk.Screen.height() / 900.0 + if gtk.gdk.screen_width() / 14 >= style.GRID_CELL_SIZE: self.activity.hex.show() self.activity.binary.show() else: self.scale = 1.33 * Gdk.Screen.width() / 1200.0 + if gtk.gdk.screen_width() / 14 < style.GRID_CELL_SIZE: self.activity.hex.hide() self.activity.binary.hide() self.canvas.set_size_request(Gdk.Screen.width(), Gdk.Screen.height()) |