Browse Source

下拉框

master
guy 8 years ago
parent
commit
b3c33f3bab
  1. 4
      bi/base.js
  2. 4
      bi/core.js
  3. 4
      docs/base.js
  4. 4
      docs/core.js
  5. 4
      src/base/combination/combo.js
  6. 4
      src/core/func/dom.js

4
bi/base.js

@ -2935,7 +2935,7 @@ BI.Combo = BI.inherit(BI.Widget, {
}
}
}, BI.EVENT_RESPONSE_TIME, true);
self.element.off(ev + "." + self.getName()).on(ev + "." + self.getName(), function(e){
self.element.off(ev + "." + self.getName()).on(ev + "." + self.getName(), function (e) {
debounce(e);
st(e);
});
@ -3051,7 +3051,7 @@ BI.Combo = BI.inherit(BI.Widget, {
break;
case "top":
case "top,right":
p = $.getComboPosition(this.combo, this.popupView, o.adjustYOffset || o.adjustLength, o.isNeedAdjustHeight, ['top', 'bottom', 'right', 'left'], o.offsetStyle);
p = $.getComboPosition(this.combo, this.popupView, o.adjustXOffset, o.adjustYOffset || o.adjustLength, o.isNeedAdjustHeight, ['top', 'bottom', 'right', 'left'], o.offsetStyle);
break;
case "left":
case "left,bottom":

4
bi/core.js

@ -17057,7 +17057,9 @@ BI.extend(jQuery, {
}
break;
}
popup.resetHeight && popup.resetHeight(Math.min(bodyHeight - position.top, maxHeight));
if(needAdaptHeight === true) {
popup.resetHeight && popup.resetHeight(Math.min(bodyHeight - position.top, maxHeight));
}
return position;
}
});/**

4
docs/base.js

@ -2935,7 +2935,7 @@ BI.Combo = BI.inherit(BI.Widget, {
}
}
}, BI.EVENT_RESPONSE_TIME, true);
self.element.off(ev + "." + self.getName()).on(ev + "." + self.getName(), function(e){
self.element.off(ev + "." + self.getName()).on(ev + "." + self.getName(), function (e) {
debounce(e);
st(e);
});
@ -3051,7 +3051,7 @@ BI.Combo = BI.inherit(BI.Widget, {
break;
case "top":
case "top,right":
p = $.getComboPosition(this.combo, this.popupView, o.adjustYOffset || o.adjustLength, o.isNeedAdjustHeight, ['top', 'bottom', 'right', 'left'], o.offsetStyle);
p = $.getComboPosition(this.combo, this.popupView, o.adjustXOffset, o.adjustYOffset || o.adjustLength, o.isNeedAdjustHeight, ['top', 'bottom', 'right', 'left'], o.offsetStyle);
break;
case "left":
case "left,bottom":

4
docs/core.js

@ -22569,7 +22569,9 @@ BI.extend(jQuery, {
}
break;
}
popup.resetHeight && popup.resetHeight(Math.min(bodyHeight - position.top, maxHeight));
if(needAdaptHeight === true) {
popup.resetHeight && popup.resetHeight(Math.min(bodyHeight - position.top, maxHeight));
}
return position;
}
});/**

4
src/base/combination/combo.js

@ -132,7 +132,7 @@ BI.Combo = BI.inherit(BI.Widget, {
}
}
}, BI.EVENT_RESPONSE_TIME, true);
self.element.off(ev + "." + self.getName()).on(ev + "." + self.getName(), function(e){
self.element.off(ev + "." + self.getName()).on(ev + "." + self.getName(), function (e) {
debounce(e);
st(e);
});
@ -248,7 +248,7 @@ BI.Combo = BI.inherit(BI.Widget, {
break;
case "top":
case "top,right":
p = $.getComboPosition(this.combo, this.popupView, o.adjustYOffset || o.adjustLength, o.isNeedAdjustHeight, ['top', 'bottom', 'right', 'left'], o.offsetStyle);
p = $.getComboPosition(this.combo, this.popupView, o.adjustXOffset, o.adjustYOffset || o.adjustLength, o.isNeedAdjustHeight, ['top', 'bottom', 'right', 'left'], o.offsetStyle);
break;
case "left":
case "left,bottom":

4
src/core/func/dom.js

@ -577,7 +577,9 @@ BI.extend(jQuery, {
}
break;
}
popup.resetHeight && popup.resetHeight(Math.min(bodyHeight - position.top, maxHeight));
if(needAdaptHeight === true) {
popup.resetHeight && popup.resetHeight(Math.min(bodyHeight - position.top, maxHeight));
}
return position;
}
});
Loading…
Cancel
Save