File tree Expand file tree Collapse file tree 2 files changed +11
-3
lines changed
src/components/ResizableLayout Expand file tree Collapse file tree 2 files changed +11
-3
lines changed Original file line number Diff line number Diff line change 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" : [
Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments