Changed the logic to setup the initial size of the editor outline widget. Somehow the width of the splitter did not get set correctly in certain situations (see issue 567). eric7

Fri, 02 Aug 2024 14:35:21 +0200

author
Detlev Offenbach <detlev@die-offenbachs.de>
date
Fri, 02 Aug 2024 14:35:21 +0200
branch
eric7
changeset 10880
2d2dd2c638e8
parent 10879
25c211d24fd3
child 10881
c20d7e202152

Changed the logic to setup the initial size of the editor outline widget. Somehow the width of the splitter did not get set correctly in certain situations (see issue 567).

src/eric7/QScintilla/EditorAssembly.py file | annotate | diff | comparison | revisions
--- a/src/eric7/QScintilla/EditorAssembly.py	Fri Aug 02 14:33:12 2024 +0200
+++ b/src/eric7/QScintilla/EditorAssembly.py	Fri Aug 02 14:35:21 2024 +0200
@@ -114,7 +114,7 @@
         Public method to finish the setup of the assembly.
         """
         splitterWidth = (
-            self.__editorSplitter.width() - self.__editorSplitter.handleWidth()
+            self.parent().width() - self.__editorSplitter.handleWidth()
         )
         outlineWidth = Preferences.getEditor("SourceOutlineWidth")
         self.__editorSplitter.setSizes([splitterWidth - outlineWidth, outlineWidth])

eric ide

mercurial