From ef0555f2d8fd9219e18739eb9a383715a9199b4f Mon Sep 17 00:00:00 2001 From: Laurent Cozic Date: Fri, 6 Oct 2017 18:01:10 +0000 Subject: [PATCH] Terminal gui --- CliClient/app/app-gui.js | 20 ++++++-------------- 1 file changed, 6 insertions(+), 14 deletions(-) diff --git a/CliClient/app/app-gui.js b/CliClient/app/app-gui.js index 4ee764d925..468abf06fa 100644 --- a/CliClient/app/app-gui.js +++ b/CliClient/app/app-gui.js @@ -32,10 +32,7 @@ class AppGui { return item.title; }); folderList.setStyle({ - //borderTopWidth: 1, borderBottomWidth: 1, - //borderLeftWidth: 1, - //borderRightWidth: 1, }); folderList.setName('folderList'); folderList.setVStretch(true); @@ -52,7 +49,6 @@ class AppGui { noteList.setName('noteList'); noteList.setVStretch(true); noteList.setStyle({ - //borderTopWidth: 1, borderBottomWidth: 1, borderLeftWidth: 1, borderRightWidth: 1, @@ -66,24 +62,20 @@ class AppGui { noteText.setVStretch(true); noteText.setName('noteText'); noteText.setStyle({ - //borderTopWidth: 1, borderBottomWidth: 1, - //borderLeftWidth: 1, - //borderRightWidth: 1, }); - const layout1 = new HLayoutWidget(); - //layout1.addChild(noteText, { type: 'fixed', factor: 20 }); - layout1.addChild(folderList, { type: 'stretch', factor: 1 }); - layout1.addChild(noteList, { type: 'stretch', factor: 1 }); - layout1.addChild(noteText, { type: 'stretch', factor: 1 }); + const hLayout = new HLayoutWidget(); + hLayout.addChild(folderList, { type: 'stretch', factor: 1 }); + hLayout.addChild(noteList, { type: 'stretch', factor: 1 }); + hLayout.addChild(noteText, { type: 'stretch', factor: 1 }); // const layout2 = new VLayoutWidget(); - // layout2.addChild(layout1, { type: 'stretch', factor: 1 }); + // layout2.addChild(hLayout, { type: 'stretch', factor: 1 }); // layout2.addChild(listWidget3, { type: 'fixed', factor: 5 }); const win1 = new WindowWidget(); - win1.addChild(layout1); + win1.addChild(hLayout); win1.setName('mainWindow'); win1.setLocation(1,1);