From cb522c7d5090cd3bcf17932fcdc17f6cc981c2c6 Mon Sep 17 00:00:00 2001 From: Veronica Berglyd Olsen <1619840+vkbo@users.noreply.github.com> Date: Fri, 15 Sep 2023 18:40:32 +0200 Subject: [PATCH] Fix some layout issues in main gui --- novelwriter/guimain.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/novelwriter/guimain.py b/novelwriter/guimain.py index 4e792a04..a5c55fd7 100644 --- a/novelwriter/guimain.py +++ b/novelwriter/guimain.py @@ -152,7 +152,7 @@ class GuiMain(QMainWindow): # Project Tree View self.treePane = QWidget(self) - self.treeBox = QVBoxLayout(self) + self.treeBox = QVBoxLayout() self.treeBox.setContentsMargins(0, 0, 0, 0) self.treeBox.setSpacing(mPx) self.treeBox.addWidget(self.projStack) @@ -222,7 +222,7 @@ class GuiMain(QMainWindow): self.rebuildTrees() # Assemble Main Window Elements - self.mainBox = QHBoxLayout(self) + self.mainBox = QHBoxLayout() self.mainBox.addWidget(self.sideBar) self.mainBox.addWidget(self.mainStack) self.mainBox.setContentsMargins(0, 0, 0, 0)