From 8429ea57bff512bf843d4ed06ed94b8c961b53b4 Mon Sep 17 00:00:00 2001 From: Nathanaƫl Jourdane <nathanael.jourdane@irap.omp.eu> Date: Thu, 15 Mar 2018 17:35:00 +0100 Subject: [PATCH] Fix resize bug on log panel --- js/app/controllers/ExplorerModule.js | 24 ++++++------------------ 1 file changed, 6 insertions(+), 18 deletions(-) diff --git a/js/app/controllers/ExplorerModule.js b/js/app/controllers/ExplorerModule.js index e73c9d6..6f6037d 100644 --- a/js/app/controllers/ExplorerModule.js +++ b/js/app/controllers/ExplorerModule.js @@ -102,32 +102,20 @@ Ext.define('amdaDesktop.ExplorerModule', { xtype: 'panelExplorer', id: this.contentId, - region: 'center' - }, - { - xtype: 'label', - text: 'Log:', - margin: '10 0 -5 0', - region: 'south', - height: 20 + region: 'north' }, { xtype: 'panel', + title: 'Log', id: 'LogPanel', region: 'south', - height: 150, split: true, - layout: { - type: 'vbox', - align: 'stretch', - autoSize: true - }, - autoScroll: true, + height: 150, stateful: true, stateId: 'LogPanel', - buttons: [{ - scope: this, - text: 'Clear', + tools: [{ + type: 'close', + tooltip: 'Clear logs', handler: function () { var logPanel = win.items.get('LogPanel') logPanel.removeAll() -- libgit2 0.21.2