diff --git a/www/config/GCView.js b/www/config/GCView.js index de43bc25..76fb262e 100644 --- a/www/config/GCView.js +++ b/www/config/GCView.js @@ -107,6 +107,10 @@ Ext.define('PBS.config.GCJobView', { stopStore: function() { this.getView().getStore().rstore.stopUpdate(); }, reload: function() { this.getView().getStore().rstore.load(); }, + + filterState: function(view, state) { + delete state.height; + }, }, listeners: { @@ -114,6 +118,7 @@ Ext.define('PBS.config.GCJobView', { beforedestroy: 'stopStore', deactivate: 'stopStore', itemdblclick: 'editGCJob', + beforestatesave: 'filterState', }, store: { diff --git a/www/config/PruneAndGC.js b/www/config/PruneAndGC.js index a1163402..b85c2961 100644 --- a/www/config/PruneAndGC.js +++ b/www/config/PruneAndGC.js @@ -14,6 +14,7 @@ Ext.define('PBS.config.PruneAndGC', { collapsible: false, margin: '7 10 3 10', }, + scrollable: true, items: [ { xtype: 'pbsGCJobView', @@ -22,6 +23,11 @@ Ext.define('PBS.config.PruneAndGC', { cbind: { datastore: '{datastore}', }, + minHeight: 125, // shows at least one line of content + }, + { + xtype: 'splitter', + performCollapse: false, }, { xtype: 'pbsPruneJobView', @@ -30,12 +36,14 @@ Ext.define('PBS.config.PruneAndGC', { cbind: { datastore: '{datastore}', }, + flex: 1, + minHeight: 160, // shows at least one line of content }, ], initComponent: function() { let me = this; - let subPanelIds = me.items.map(el => el.itemId); + let subPanelIds = me.items.map(el => el.itemId).filter(id => !!id); me.callParent();