X-Git-Url: http://git.roojs.org/?p=roojs1;a=blobdiff_plain;f=Roo%2Fform%2FComboNested.js;fp=Roo%2Fform%2FComboNested.js;h=e1fefa98104d65f7228a292952c08c01d20ab299;hp=916c410d11befca7163d2f687ad14d1fb3d9bc5f;hb=b0510076cb6aad3c289efcad0e84b44de0c6c928;hpb=85b26ae53ccbd4ab4b2bb53f9d5805463e64e74c diff --git a/Roo/form/ComboNested.js b/Roo/form/ComboNested.js index 916c410d11..e1fefa9810 100644 --- a/Roo/form/ComboNested.js +++ b/Roo/form/ComboNested.js @@ -297,9 +297,10 @@ Roo.extend(Roo.form.ComboNested, Roo.form.ComboBox, { this.setFromData(rec.data); - var lw = Math.floor( - ((this.listWidth * this.maxColumns || Math.max(this.wrap.getWidth(), this.minListWidth)) - this.list.getFrameWidth('lr')) / this.maxColumns + ( + (this.listWidth * this.maxColumns || Math.max(this.wrap.getWidth(), this.minListWidth)) - this.list.getFrameWidth('lr') + ) / this.maxColumns ); this.stores[opts.list+1].loadDataFromChildren( rec ); @@ -314,6 +315,10 @@ Roo.extend(Roo.form.ComboNested, Roo.form.ComboBox, { } }, + + + + onDoubleClick : function() { this.collapse(); //?? @@ -373,7 +378,9 @@ Roo.extend(Roo.form.ComboNested, Roo.form.ComboBox, { // if store is not loaded, then we will need to wait for that to happen first. var stack = []; this.findRecordInStore(this.store, this.hiddenName, this.getValue(), stack); - + for (var i = 0; i < stack.length; i++ ) { + this.view[i].select(stack[i].store.indexOf(stack[i]), false, false ); + } }