From 83c76f6fc7f07800f872cc040f120b13f318b342 Mon Sep 17 00:00:00 2001 From: Florian Festi Date: Tue, 15 Mar 2016 20:38:30 +0100 Subject: [PATCH] Fix canvas size --- typetray.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/typetray.py b/typetray.py index 053889d..28511ea 100755 --- a/typetray.py +++ b/typetray.py @@ -72,7 +72,7 @@ class TypeTray(Boxes): hi = self.hi = self.hi or h t = self.thickness - self.open(width=x+y+10*t, height=y+(len(self.sx)+len(self.sy))*h+50) + self.open(width=2*max(x,y)+10*t, height=(len(self.sx)+len(self.sy))*(h+2*t)+4*t) self.edges["f"].settings.setValues(self.thickness, space=3, finger=3, surroundingspaces=0.5)