diff options
-rw-r--r-- | src/main/python/utils/canvas.py | 6 | ||||
-rw-r--r-- | src/main/python/utils/fileWindow.py | 3 |
2 files changed, 6 insertions, 3 deletions
diff --git a/src/main/python/utils/canvas.py b/src/main/python/utils/canvas.py index 418a95e..2ddcc01 100644 --- a/src/main/python/utils/canvas.py +++ b/src/main/python/utils/canvas.py @@ -67,9 +67,9 @@ class canvas(QWidget): if self.view.horizontalScrollBar().isVisible(): height += self.style().pixelMetric(QStyle.PM_ScrollBarExtent) - # factor = 2 if self.parentFileWindow.sideViewTab is not None else 1 - width = min(prect.width() - 20, width) # // factor - height = min(prect.height() - 60, height) # // factor + factor = 2 if self.parentFileWindow.sideViewTab is not None else 1 + width = min((prect.width() - 20)//factor, width) + height = min(prect.height() - 80, height) self.view.setFixedWidth(width) self.view.setFixedHeight(height) # self.resize(width + frameWidth * 2, height + frameWidth * 2) diff --git a/src/main/python/utils/fileWindow.py b/src/main/python/utils/fileWindow.py index 6b3c754..f9b3ac5 100644 --- a/src/main/python/utils/fileWindow.py +++ b/src/main/python/utils/fileWindow.py @@ -50,6 +50,9 @@ class fileWindow(QMdiSubWindow): self.setWindowFlag(Qt.WindowMinimizeButtonHint, False) self.setWindowFlag(Qt.WindowMaximizeButtonHint, False) + self.splitter.setVisible(False) + self.sideView.setVisible(False) + def changeTab(self, currentIndex): #placeholder function to detect tab change self.resizeHandler() |