From 3a546bfb613f746dc653b21e6bb8654cd197247b Mon Sep 17 00:00:00 2001 From: windy <1374721899@qq.com> Date: Thu, 14 Nov 2019 14:26:37 +0800 Subject: [PATCH] =?UTF-8?q?BI-55575=20refactor:=20=E5=BC=82=E6=AD=A5?= =?UTF-8?q?=E5=A4=9A=E5=B1=82=E4=B8=8B=E6=8B=89=E6=A0=91=E8=8E=B7popup?= =?UTF-8?q?=E5=88=B7=E6=96=B0=E5=90=8E=E8=87=AA=E5=8A=A8=E8=B0=83=E6=95=B4?= =?UTF-8?q?=E5=A4=A7=E5=B0=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../multilayerselecttree/multilayerselecttree.combo.js | 8 +++++++- .../multilayerselecttree/multilayerselecttree.popup.js | 3 ++- .../multilayersingletree/multilayersingletree.combo.js | 8 +++++++- .../multilayersingletree/multilayersingletree.popup.js | 3 ++- 4 files changed, 18 insertions(+), 4 deletions(-) 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({