guy 3 years ago
parent
commit
9857dab14e
  1. 2
      src/base/layer/layer.popup.js
  2. 4
      src/core/platform/web/dom.js

2
src/base/layer/layer.popup.js

@ -185,7 +185,7 @@ BI.PopupView = BI.inherit(BI.Widget, {
setDirection: function (direction, position) {
var o = this.options;
if (o.showArrow) {
var style, wrapperStyle, placeholderStyle;
var style = {}, wrapperStyle = {}, placeholderStyle = {};
var adjustXOffset = position.adjustXOffset || 0;
var adjustYOffset = position.adjustYOffset || 0;
var bodyBounds = BI.Widget._renderEngine.createElement("body").bounds();

4
src/core/platform/web/dom.js

@ -635,12 +635,12 @@
firstDir = "top";
}
if (leftRight[0] === "right") {
pos = BI.DOM.getLeftAlignPosition(combo, popup, extraWidth, needAdaptHeight).left;
pos = BI.DOM.getLeftAlignPosition(combo, popup, extraWidth, needAdaptHeight);
pos.top = top;
pos.dir = firstDir + "," + pos.dir;
return pos;
}
pos = BI.DOM.getRightAlignPosition(combo, popup, extraWidth).left;
pos = BI.DOM.getRightAlignPosition(combo, popup, extraWidth);
pos.top = top;
pos.dir = firstDir + "," + pos.dir;
return pos;

Loading…
Cancel
Save