[pve-devel] r5906 - pve-manager/pve2/www/new/form

svn-commits at proxmox.com svn-commits at proxmox.com
Thu May 5 10:36:29 CEST 2011


Author: dietmar
Date: 2011-05-05 10:36:29 +0200 (Thu, 05 May 2011)
New Revision: 5906

Modified:
   pve-manager/pve2/www/new/form/ComboGrid.js
Log:


Modified: pve-manager/pve2/www/new/form/ComboGrid.js
===================================================================
--- pve-manager/pve2/www/new/form/ComboGrid.js	2011-05-05 08:25:26 UTC (rev 5905)
+++ pve-manager/pve2/www/new/form/ComboGrid.js	2011-05-05 08:36:29 UTC (rev 5906)
@@ -1,14 +1,16 @@
 Ext.define('PVE.form.ComboGrid', {
     extend: 'Ext.form.ComboBox',
     requires: [
-	'Ext.grid.Panel'
+	'Ext.grid.Panel',
+	'PVE.Utils'
     ],
     alias: ['widget.PVE.form.ComboGrid'],
 
     computeHeight: function() {
 	var me = this;
-
-	return (me.store.totalCount > 10) ? 10*23 : 25+me.store.totalCount*23;
+	var lh = PVE.Utils.gridLineHeigh();
+	var count = me.store.totalCount;
+	return (count > 10) ? 10*lh : 26+count*lh;
     },
 
     // copied from ComboBox 




More information about the pve-devel mailing list