From b0510076cb6aad3c289efcad0e84b44de0c6c928 Mon Sep 17 00:00:00 2001 From: Alan Knowles Date: Fri, 28 Feb 2020 16:21:41 +0800 Subject: [PATCH] Roo/form/ComboNested.js --- Roo/form/ComboNested.js | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) 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 ); + } } -- 2.39.2