diff options
author | sumit | 2020-06-11 15:12:04 +0530 |
---|---|---|
committer | sumit | 2020-06-11 15:12:04 +0530 |
commit | 46da6485a37cfdc8f7c9e8efd251222ef2d6811c (patch) | |
tree | a044378da95236d8ff3296a1cc8bbcbef5db5cc7 /src/main/python/utils/canvas.py | |
parent | 269de763d0624412d90cefdb0aad262e1a6a24c8 (diff) | |
parent | 41faed93d3fa5e4c1f2b28553fb59b110cc71e2c (diff) | |
download | Chemical-PFD-46da6485a37cfdc8f7c9e8efd251222ef2d6811c.tar.gz Chemical-PFD-46da6485a37cfdc8f7c9e8efd251222ef2d6811c.tar.bz2 Chemical-PFD-46da6485a37cfdc8f7c9e8efd251222ef2d6811c.zip |
Merge remote-tracking branch 'upstream/master'
Diffstat (limited to 'src/main/python/utils/canvas.py')
-rw-r--r-- | src/main/python/utils/canvas.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main/python/utils/canvas.py b/src/main/python/utils/canvas.py index c860bbb..f37d1f8 100644 --- a/src/main/python/utils/canvas.py +++ b/src/main/python/utils/canvas.py @@ -69,8 +69,8 @@ class canvas(QWidget): #if view is visible use half of available width factor = 2 if self.parentFileWindow.sideViewTab is not None else 1 #use minimum width required to fit the view - width = min((prect.width() - 40)//factor, width) - height = min(prect.height() - 80, height) + width = min((prect.width() - 60)//factor, width) + height = min(prect.height() - 120, height) #set view dims self.view.setFixedWidth(width) self.view.setFixedHeight(height) |