hack: call setHeight to show scroll bars correctly
This commit is contained in:
parent
72eaf1a959
commit
9128a8c82c
6
debian/changelog.Debian
vendored
6
debian/changelog.Debian
vendored
@ -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
|
||||
|
@ -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
|
||||
|
@ -157,7 +157,7 @@ Ext.define('PVE.window.Snapshot', {
|
||||
border: false,
|
||||
layout: 'fit',
|
||||
buttons: [ submitBtn ],
|
||||
items: me.formPanel
|
||||
items: [ me.formPanel ]
|
||||
});
|
||||
|
||||
if (me.snapname) {
|
||||
|
@ -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
|
||||
}
|
||||
});
|
||||
|
@ -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));
|
||||
}
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
|
@ -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
|
||||
}
|
||||
});
|
||||
|
Loading…
x
Reference in New Issue
Block a user