Skip to content

Commit de9eea4

Browse files
committed
More tests
1 parent e552af0 commit de9eea4

File tree

2 files changed

+11
-3
lines changed

2 files changed

+11
-3
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "jderobot-ide-interface",
3-
"version": "0.2.01",
3+
"version": "0.2.02",
44
"main": "dist/main.js",
55
"typings": "dist/index.d.ts",
66
"files": [

src/components/ResizableLayout/ResizableComponents.tsx

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -161,8 +161,8 @@ export const ResizableLayout = ({
161161
}) => {
162162
const theme = useTheme();
163163
var components = 0;
164-
var oneIndex = showExplorer ? 0 : layout === "only-editor" ? 1 : 2;
165-
var twoIndex = layout === "only-viewers" ? 2 : 1;
164+
var oneIndex = 0;
165+
var twoIndex = 0;
166166

167167
console.log(oneIndex,twoIndex)
168168

@@ -171,8 +171,16 @@ export const ResizableLayout = ({
171171
}
172172

173173
if (layout === "both") {
174+
oneIndex = showExplorer ? 0 : 1;
175+
twoIndex = 2;
174176
components += 2;
177+
} else if (layout === "only-editor") {
178+
oneIndex = showExplorer ? 0 : 1;
179+
twoIndex = 1;
180+
components += 1;
175181
} else {
182+
oneIndex = showExplorer ? 0 : 2;
183+
twoIndex = 2;
176184
components += 1;
177185
}
178186

0 commit comments

Comments
 (0)