diff --git a/src/widget/multilayerselecttree/multilayerselecttree.combo.js b/src/widget/multilayerselecttree/multilayerselecttree.combo.js index ecde58b504..549f3a6267 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 7b4ec3f0f5..904b193c64 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 37d32ea701..8b6d145e16 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 f0e1001010..50bef13544 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({