Reduce the 3D preview window size if the main window will not fit on the screen. #177
This commit is contained in:
1 parent
e4c6f0cb22
commit
aad4fd8769
1 file changed
+4
@@ -246,6 +246,10 @@ class mainWindow(configBase.configWindowBase):
|
||||
self.updateProfileToControls()
|
||||
|
||||
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.SetMinSize(self.GetSize())
|
||||
self.Centre()
|
||||
self.Show(True)
|
||||
|
||||
Reference in new issue
Block a user