use getTotalCount instead of getCount

To prevent heigth change on filtering.
This commit is contained in:
Dietmar Maurer 2014-05-28 16:51:08 +02:00
parent ec549ebc13
commit ff01fbb35e

View File

@ -8,7 +8,7 @@ Ext.define('PVE.form.ComboGrid', {
computeHeight: function() { computeHeight: function() {
var me = this; var me = this;
var lh = PVE.Utils.gridLineHeigh(); var lh = PVE.Utils.gridLineHeigh();
var count = me.store.getCount(); var count = me.store.getTotalCount();
return (count > 10) ? 10*lh : 26+count*lh; return (count > 10) ? 10*lh : 26+count*lh;
}, },