summaryrefslogtreecommitdiff
path: root/lib/extensions
diff options
context:
space:
mode:
authorLex Neva <github.com@lexneva.name>2018-08-26 16:14:03 -0400
committerLex Neva <github.com@lexneva.name>2018-08-26 16:14:03 -0400
commitb3516785aafef79a02059cf29591ec978331e703 (patch)
tree87f7f9d8fd84ae50b9d69249d990dceda71fde14 /lib/extensions
parente854df43073ce3158654b0db304edd0bba7a7d6d (diff)
automatically scale and center the design
Diffstat (limited to 'lib/extensions')
-rw-r--r--lib/extensions/simulate.py7
1 files changed, 4 insertions, 3 deletions
diff --git a/lib/extensions/simulate.py b/lib/extensions/simulate.py
index 2e414ac6..dcb5e604 100644
--- a/lib/extensions/simulate.py
+++ b/lib/extensions/simulate.py
@@ -25,11 +25,12 @@ class Simulate(InkstitchExtension):
screen_rect = display.GetClientArea()
simulator_pos = (screen_rect[0], screen_rect[1])
- width = screen_rect[2]
- height = screen_rect[3]
+
+ # subtract 1 because otherwise the window becomes maximized on Linux
+ width = screen_rect[2] - 1
+ height = screen_rect[3] - 1
frame = EmbroiderySimulator(None, -1, _("Embroidery Simulation"), pos=simulator_pos, size=(width, height), stitch_plan=stitch_plan)
app.SetTopWindow(frame)
frame.Show()
- wx.CallAfter(frame.go)
app.MainLoop()