Increase the setSizes parameter
If the parameter given to setSizes is very small and smaller than QSplitter, the sub windows within QSplitter will be stretched. It is advisable to set a larger parameter for setSizes as much as possible.
This commit is contained in:
parent
74d12576cd
commit
8487bb86d0
@ -51,8 +51,7 @@ class EditorPreview(object):
|
|||||||
self._inject_splitter(ed)
|
self._inject_splitter(ed)
|
||||||
|
|
||||||
def _get_splitter(self, editor):
|
def _get_splitter(self, editor):
|
||||||
layout = editor.outerLayout
|
mainR, editorR = [int(r) * 10000 for r in config["splitRatio"].split(":")]
|
||||||
mainR, editorR = [int(r) for r in config["splitRatio"].split(":")]
|
|
||||||
location = config["location"]
|
location = config["location"]
|
||||||
split = QSplitter()
|
split = QSplitter()
|
||||||
if location == "above":
|
if location == "above":
|
||||||
|
Loading…
Reference in New Issue
Block a user