Fix the background of the load/prepare/print buttons. Fix the border around the preview window toolbar.

master
daid303 2012-10-15 13:12:56 +02:00
parent eab76a4566
commit db1cfa0954
2 changed files with 6 additions and 0 deletions

View File

@ -254,11 +254,14 @@ class mainWindow(configBase.configWindowBase):
self.updateProfileToControls()
self.SetBackgroundColour(nb.GetBackgroundColour())
self.Fit()
if wx.Display().GetClientArea().GetWidth() < self.GetSize().GetWidth():
f = self.GetSize().GetWidth() - wx.Display().GetClientArea().GetWidth()
self.preview3d.SetMinSize(self.preview3d.GetMinSize().DecBy(f, 0))
self.Fit()
self.preview3d.Fit()
self.SetMinSize(self.GetSize())
self.Centre()
self.Show(True)

View File

@ -124,12 +124,15 @@ class simpleModeWindow(configBase.configWindowBase):
if len(self.filelist) > 0:
self.preview3d.loadModelFiles(self.filelist)
self.SetBackgroundColour(configPanel.GetBackgroundColour())
self.updateProfileToControls()
self.printTypeNormal.SetValue(True)
self.printMaterialPLA.SetValue(True)
self.Fit()
self.preview3d.Fit()
self.SetMinSize(self.GetSize())
self.Centre()
self.Show(True)