diff --git a/src/widget/multilayerselecttree/multilayerselecttree.combo.js b/src/widget/multilayerselecttree/multilayerselecttree.combo.js index ecde58b50..549f3a626 100644 --- a/src/widget/multilayerselecttree/multilayerselecttree.combo.js +++ b/src/widget/multilayerselecttree/multilayerselecttree.combo.js @@ -84,7 +84,13 @@ BI.MultiLayerSelectTreeCombo = BI.inherit(BI.Widget, { self.combo.hideView(); self.fireEvent(BI.MultiLayerSelectTreeCombo.EVENT_CHANGE); } - }] + }], + onLoaded: function () { + BI.nextTick(function () { + self.combo.adjustWidth(); + self.combo.adjustHeight(); + }); + } }, value: o.value, maxHeight: 400, diff --git a/src/widget/multilayerselecttree/multilayerselecttree.popup.js b/src/widget/multilayerselecttree/multilayerselecttree.popup.js index 7b4ec3f0f..904b193c6 100644 --- a/src/widget/multilayerselecttree/multilayerselecttree.popup.js +++ b/src/widget/multilayerselecttree/multilayerselecttree.popup.js @@ -30,7 +30,8 @@ BI.MultiLayerSelectTreePopup = BI.inherit(BI.Widget, { itemsCreator: o.itemsCreator, keywordGetter: o.keywordGetter, value: o.value, - scrollable: null + scrollable: null, + onLoaded: o.onLoaded }); BI.createWidget({ diff --git a/src/widget/multilayersingletree/multilayersingletree.combo.js b/src/widget/multilayersingletree/multilayersingletree.combo.js index 37d32ea70..8b6d145e1 100644 --- a/src/widget/multilayersingletree/multilayersingletree.combo.js +++ b/src/widget/multilayersingletree/multilayersingletree.combo.js @@ -87,7 +87,13 @@ BI.MultiLayerSingleTreeCombo = BI.inherit(BI.Widget, { self.combo.hideView(); self.fireEvent(BI.MultiLayerSingleTreeCombo.EVENT_CHANGE); } - }] + }], + onLoaded: function () { + BI.nextTick(function () { + self.combo.adjustWidth(); + self.combo.adjustHeight(); + }); + } }, value: o.value, maxHeight: 400, diff --git a/src/widget/multilayersingletree/multilayersingletree.popup.js b/src/widget/multilayersingletree/multilayersingletree.popup.js index f0e100101..50bef1354 100644 --- a/src/widget/multilayersingletree/multilayersingletree.popup.js +++ b/src/widget/multilayersingletree/multilayersingletree.popup.js @@ -29,7 +29,8 @@ BI.MultiLayerSingleTreePopup = BI.inherit(BI.Widget, { itemsCreator: o.itemsCreator, keywordGetter: o.keywordGetter, value: o.value, - scrollable: null + scrollable: null, + onLoaded: o.onLoaded }); BI.createWidget({