Browse Source

Merge pull request #1188 in VISUAL/fineui from ~WINDY/fineui:master to master

* commit '3a546bfb613f746dc653b21e6bb8654cd197247b':
  BI-55575 refactor: 异步多层下拉树获popup刷新后自动调整大小
es6
guy 5 years ago
parent
commit
25150ea73b
  1. 8
      src/widget/multilayerselecttree/multilayerselecttree.combo.js
  2. 3
      src/widget/multilayerselecttree/multilayerselecttree.popup.js
  3. 8
      src/widget/multilayersingletree/multilayersingletree.combo.js
  4. 3
      src/widget/multilayersingletree/multilayersingletree.popup.js

8
src/widget/multilayerselecttree/multilayerselecttree.combo.js

@ -84,7 +84,13 @@ BI.MultiLayerSelectTreeCombo = BI.inherit(BI.Widget, {
self.combo.hideView(); self.combo.hideView();
self.fireEvent(BI.MultiLayerSelectTreeCombo.EVENT_CHANGE); self.fireEvent(BI.MultiLayerSelectTreeCombo.EVENT_CHANGE);
} }
}] }],
onLoaded: function () {
BI.nextTick(function () {
self.combo.adjustWidth();
self.combo.adjustHeight();
});
}
}, },
value: o.value, value: o.value,
maxHeight: 400, maxHeight: 400,

3
src/widget/multilayerselecttree/multilayerselecttree.popup.js

@ -30,7 +30,8 @@ BI.MultiLayerSelectTreePopup = BI.inherit(BI.Widget, {
itemsCreator: o.itemsCreator, itemsCreator: o.itemsCreator,
keywordGetter: o.keywordGetter, keywordGetter: o.keywordGetter,
value: o.value, value: o.value,
scrollable: null scrollable: null,
onLoaded: o.onLoaded
}); });
BI.createWidget({ BI.createWidget({

8
src/widget/multilayersingletree/multilayersingletree.combo.js

@ -87,7 +87,13 @@ BI.MultiLayerSingleTreeCombo = BI.inherit(BI.Widget, {
self.combo.hideView(); self.combo.hideView();
self.fireEvent(BI.MultiLayerSingleTreeCombo.EVENT_CHANGE); self.fireEvent(BI.MultiLayerSingleTreeCombo.EVENT_CHANGE);
} }
}] }],
onLoaded: function () {
BI.nextTick(function () {
self.combo.adjustWidth();
self.combo.adjustHeight();
});
}
}, },
value: o.value, value: o.value,
maxHeight: 400, maxHeight: 400,

3
src/widget/multilayersingletree/multilayersingletree.popup.js

@ -29,7 +29,8 @@ BI.MultiLayerSingleTreePopup = BI.inherit(BI.Widget, {
itemsCreator: o.itemsCreator, itemsCreator: o.itemsCreator,
keywordGetter: o.keywordGetter, keywordGetter: o.keywordGetter,
value: o.value, value: o.value,
scrollable: null scrollable: null,
onLoaded: o.onLoaded
}); });
BI.createWidget({ BI.createWidget({

Loading…
Cancel
Save