Skip to content
Snippets Groups Projects
Commit 13afe5ee authored by Loïc Correnson's avatar Loïc Correnson
Browse files

[dome/qsplitter] fix split bar positions

parent 19c8d0e7
No related branches found
No related tags found
No related merge requests found
...@@ -301,8 +301,8 @@ function QSplitEngine(props: QSplitEngineProps) { ...@@ -301,8 +301,8 @@ function QSplitEngine(props: QSplitEngineProps) {
// [ A – C|D ] // [ A – C|D ]
//---------------------------------------- //----------------------------------------
else if (AB) { else if (AB) {
hsplit = HSPLIT(X, 0, height); hsplit = HSPLIT(X, Y, RY);
vsplit = VSPLIT(X, Y, RX); vsplit = VSPLIT(0, Y, width);
DISPLAY(layout, A, 0, width, 0, Y); DISPLAY(layout, A, 0, width, 0, Y);
DISPLAY(layout, C, 0, X, Y + 1, RY); DISPLAY(layout, C, 0, X, Y + 1, RY);
DISPLAY(layout, D, X + 1, RX, Y + 1, RY); DISPLAY(layout, D, X + 1, RX, Y + 1, RY);
...@@ -321,8 +321,8 @@ function QSplitEngine(props: QSplitEngineProps) { ...@@ -321,8 +321,8 @@ function QSplitEngine(props: QSplitEngineProps) {
// [ A-C | B ] // [ A-C | B ]
//---------------------------------------- //----------------------------------------
else if (BD) { else if (BD) {
hsplit = HSPLIT(0, Y, RX); hsplit = HSPLIT(X, 0, height);
vsplit = VSPLIT(X, 0, width); vsplit = VSPLIT(0, Y, X);
DISPLAY(layout, A, 0, X, 0, Y); DISPLAY(layout, A, 0, X, 0, Y);
DISPLAY(layout, B, X + 1, RX, 0, height); DISPLAY(layout, B, X + 1, RX, 0, height);
DISPLAY(layout, C, 0, X, Y + 1, RY); DISPLAY(layout, C, 0, X, Y + 1, RY);
...@@ -331,7 +331,7 @@ function QSplitEngine(props: QSplitEngineProps) { ...@@ -331,7 +331,7 @@ function QSplitEngine(props: QSplitEngineProps) {
// [ A|B - C ] // [ A|B - C ]
//---------------------------------------- //----------------------------------------
else if (CD) { else if (CD) {
hsplit = HSPLIT(X, 0, RX); hsplit = HSPLIT(X, 0, Y);
vsplit = VSPLIT(0, Y, width); vsplit = VSPLIT(0, Y, width);
DISPLAY(layout, A, 0, X, 0, Y); DISPLAY(layout, A, 0, X, 0, Y);
DISPLAY(layout, B, X + 1, RX, 0, Y); DISPLAY(layout, B, X + 1, RX, 0, Y);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment