Commit 9128a8c8 authored by Dietmar Maurer's avatar Dietmar Maurer

hack: call setHeight to show scroll bars correctly

parent 72eaf1a9
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
}
});
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment