Skip to content

Commit 5d7fa10

Browse files
committed
Changed plots docking side
1 parent 035cc06 commit 5d7fa10

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

webapp/components/layout/LayoutManager.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ class LayoutManager {
121121
getComponent = () => withStyles(styles)(this.Component(this));
122122

123123

124-
private createTabSet(tabsetID, position = TabsetPosition.BOTTOM, weight = 30) {
124+
private createTabSet(tabsetID, position = TabsetPosition.RIGHT, weight = 50) {
125125
// In case the tabset doesn't exist
126126
const { model } = this;
127127
const rootNode = model.getNodeById("root");
@@ -134,9 +134,11 @@ class LayoutManager {
134134
let hrowRowRow = null;
135135
switch (position) {
136136
case TabsetPosition.RIGHT:
137+
rootNode.getChildren().forEach(node => node._setWeight(100 - weight));
137138
rootNode._addChild(tabset);
138139
break;
139140
case TabsetPosition.LEFT:
141+
rootNode.getChildren().forEach(node => node._setWeight(100 - weight));
140142
rootNode._addChild(tabset, 0);
141143
break;
142144
case TabsetPosition.BOTTOM:

0 commit comments

Comments
 (0)