Commit 8429ea57bff512bf843d4ed06ed94b8c961b53b4
1 parent
b1a19dfa
Exists in
master
and in
111 other branches
Fix resize bug on log panel
Showing
1 changed file
with
6 additions
and
18 deletions
Show diff stats
js/app/controllers/ExplorerModule.js
... | ... | @@ -102,32 +102,20 @@ Ext.define('amdaDesktop.ExplorerModule', |
102 | 102 | { |
103 | 103 | xtype: 'panelExplorer', |
104 | 104 | id: this.contentId, |
105 | - region: 'center' | |
106 | - }, | |
107 | - { | |
108 | - xtype: 'label', | |
109 | - text: 'Log:', | |
110 | - margin: '10 0 -5 0', | |
111 | - region: 'south', | |
112 | - height: 20 | |
105 | + region: 'north' | |
113 | 106 | }, |
114 | 107 | { |
115 | 108 | xtype: 'panel', |
109 | + title: 'Log', | |
116 | 110 | id: 'LogPanel', |
117 | 111 | region: 'south', |
118 | - height: 150, | |
119 | 112 | split: true, |
120 | - layout: { | |
121 | - type: 'vbox', | |
122 | - align: 'stretch', | |
123 | - autoSize: true | |
124 | - }, | |
125 | - autoScroll: true, | |
113 | + height: 150, | |
126 | 114 | stateful: true, |
127 | 115 | stateId: 'LogPanel', |
128 | - buttons: [{ | |
129 | - scope: this, | |
130 | - text: 'Clear', | |
116 | + tools: [{ | |
117 | + type: 'close', | |
118 | + tooltip: 'Clear logs', | |
131 | 119 | handler: function () { |
132 | 120 | var logPanel = win.items.get('LogPanel') |
133 | 121 | logPanel.removeAll() |
... | ... |