Browse Source

Pull request #2173: BI-93885 下拉列表的最大宽度优化

Merge in VISUAL/fineui from ~GUY/fineui:master to master

* commit 'ca47357a10a72211cd65e7d3e2aa2aaf5ba35d03':
  BI-93885 下拉列表的最大宽度优化
  BI-93885 下拉列表的最大宽度优化
es6
guy 3 years ago
parent
commit
925afbf176
  1. 17
      src/base/combination/combo.js

17
src/base/combination/combo.js

@ -340,11 +340,20 @@
this.resetListWidth("");
var width = this.popupView.element.outerWidth();
var maxW = this.element.outerWidth() || o.width;
if (width > maxW + 80) {
maxW = maxW + 80;
} else if (width > maxW) {
maxW = width;
// BI-93885 最大列宽算法调整
if (maxW < 500) {
if (width > 500) {
maxW = 500;
} else if(width > maxW) {
maxW = width;
}
}
// if (width > maxW + 80) {
// maxW = maxW + 80;
// } else if (width > maxW) {
// maxW = width;
// }
this.resetListWidth(maxW < 100 ? 100 : maxW);
}
},

Loading…
Cancel
Save