X-Git-Url: http://git.roojs.org/?a=blobdiff_plain;f=roojs-debug.js;h=b384c83dd97fdab730826d49dbc72ce252882922;hb=d760d9f97b3fc0143e0c6ebbe93bdf8cb4892872;hp=6a7065dc6159fce588cb10f3d3feefa0499978db;hpb=43e2affb94432796fc7e44c5e5fea62901333485;p=roojs1 diff --git a/roojs-debug.js b/roojs-debug.js index 6a7065dc61..b384c83dd9 100644 --- a/roojs-debug.js +++ b/roojs-debug.js @@ -42963,11 +42963,12 @@ Roo.extend(Roo.form.ComboNested, Roo.form.ComboBox, { ((this.listWidth * 3 || Math.max(this.wrap.getWidth(), this.minListWidth)) - this.list.getFrameWidth('lr')) / 3 ); var data = typeof(rec.data.cn) == 'undefined' ? [] : rec.data.cn; + var dl = typeof(data.data.cn) ? data.data.total : data.length; ///json is a nested response.. this.stores[opts.list+1].loadData( data ); this.views[opts.list+1].getEl().setHeight( this.innerLists[0].getHeight()); - this.views[opts.list+1].getEl().setStyle({ display : data .length ? 'block' : 'none' }); + this.views[opts.list+1].getEl().setStyle({ display : dl ? 'block' : 'none' }); this.innerLists[opts.list+1].setHeight( this.innerLists[0].getHeight()); - this.list.setWidth(lw * (opts.list + (data.length ? 2 : 1))); + this.list.setWidth(lw * (opts.list + (dl ? 2 : 1))); }, onDoubleClick : function() {