summaryrefslogtreecommitdiff
path: root/src/main/python
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/python')
-rw-r--r--src/main/python/utils/fileWindow.py10
1 files changed, 8 insertions, 2 deletions
diff --git a/src/main/python/utils/fileWindow.py b/src/main/python/utils/fileWindow.py
index 6fee493..6d35437 100644
--- a/src/main/python/utils/fileWindow.py
+++ b/src/main/python/utils/fileWindow.py
@@ -86,8 +86,14 @@ class fileWindow(QMdiSubWindow):
parentRect = self.mdiArea().size()
current = self.tabber.currentWidget()
width, height = current.dimensions
- width = min(parentRect.width(), width + 100)
- height = min(parentRect.height(), height + 150)
+
+ if self.sideViewTab:
+ width2, height2 = self.sideViewTab.dimensions
+ width = min(parentRect.width(), width + width2)
+ height = min(parentRect.height(), height + height2)
+ else:
+ width = min(parentRect.width(), width + 100)
+ height = min(parentRect.height(), height + 150)
if len(self.parent().parent().subWindowList()) > 1:
height -= 20