Reduce the 3D preview window size if the main window will not fit on the screen. #177
This commit is contained in:
parent
e4c6f0cb22
commit
aad4fd8769
1 changed files with 4 additions and 0 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Reference in a new issue