summaryrefslogtreecommitdiff
path: root/src/main/python/utils/canvas.py
diff options
context:
space:
mode:
authorsumit2020-06-11 15:12:04 +0530
committersumit2020-06-11 15:12:04 +0530
commit46da6485a37cfdc8f7c9e8efd251222ef2d6811c (patch)
treea044378da95236d8ff3296a1cc8bbcbef5db5cc7 /src/main/python/utils/canvas.py
parent269de763d0624412d90cefdb0aad262e1a6a24c8 (diff)
parent41faed93d3fa5e4c1f2b28553fb59b110cc71e2c (diff)
downloadChemical-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.py4
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)