hack: call setHeight to show scroll bars correctly

This commit is contained in:
Dietmar Maurer 2012-09-26 11:21:01 +02:00
parent 72eaf1a959
commit 9128a8c82c
6 changed files with 33 additions and 3 deletions

View File

@ -1,3 +1,9 @@
pve-manager (2.2-18) unstable; urgency=low
* add workaroud to correctly show scrollbars
-- Proxmox Support Team <support@proxmox.com> Wed, 26 Sep 2012 11:22:16 +0200
pve-manager (2.2-17) unstable; urgency=low
* add snapshot support to GUI

View File

@ -2,7 +2,7 @@ RELEASE=2.2
VERSION=2.2
PACKAGE=pve-manager
PACKAGERELEASE=17
PACKAGERELEASE=18
BINDIR=${DESTDIR}/usr/bin
PERLLIBDIR=${DESTDIR}/usr/share/perl5

View File

@ -157,7 +157,7 @@ Ext.define('PVE.window.Snapshot', {
border: false,
layout: 'fit',
buttons: [ submitBtn ],
items: me.formPanel
items: [ me.formPanel ]
});
if (me.snapname) {

View File

@ -47,6 +47,14 @@ Ext.define('PVE.storage.IScsiScan', {
matchFieldWidth: false,
listConfig: {
loadingText: 'Scanning...',
listeners: {
// hack: call setHeight to show scroll bars correctly
refresh: function(list) {
var lh = PVE.Utils.gridLineHeigh();
var count = store.getCount();
list.setHeight(lh * ((count > 10) ? 10 : count));
}
},
width: 350
}
});

View File

@ -25,7 +25,15 @@ Ext.define('PVE.storage.VgSelector', {
queryMode: 'local',
editable: false,
listConfig: {
loadingText: 'Scanning...'
loadingText: 'Scanning...',
listeners: {
// hack: call setHeight to show scroll bars correctly
refresh: function(list) {
var lh = PVE.Utils.gridLineHeigh();
var count = store.getCount();
list.setHeight(lh * ((count > 10) ? 10 : count));
}
}
}
});

View File

@ -47,6 +47,14 @@ Ext.define('PVE.storage.NFSScan', {
matchFieldWidth: false,
listConfig: {
loadingText: 'Scanning...',
listeners: {
// hack: call setHeight to show scroll bars correctly
refresh: function(list) {
var lh = PVE.Utils.gridLineHeigh();
var count = store.getCount();
list.setHeight(lh * ((count > 10) ? 10 : count));
}
},
width: 350
}
});