guy 2 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) { setDirection: function (direction, position) {
var o = this.options; var o = this.options;
if (o.showArrow) { if (o.showArrow) {
var style, wrapperStyle, placeholderStyle; var style = {}, wrapperStyle = {}, placeholderStyle = {};
var adjustXOffset = position.adjustXOffset || 0; var adjustXOffset = position.adjustXOffset || 0;
var adjustYOffset = position.adjustYOffset || 0; var adjustYOffset = position.adjustYOffset || 0;
var bodyBounds = BI.Widget._renderEngine.createElement("body").bounds(); var bodyBounds = BI.Widget._renderEngine.createElement("body").bounds();

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

@ -635,12 +635,12 @@
firstDir = "top"; firstDir = "top";
} }
if (leftRight[0] === "right") { 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.top = top;
pos.dir = firstDir + "," + pos.dir; pos.dir = firstDir + "," + pos.dir;
return pos; return pos;
} }
pos = BI.DOM.getRightAlignPosition(combo, popup, extraWidth).left; pos = BI.DOM.getRightAlignPosition(combo, popup, extraWidth);
pos.top = top; pos.top = top;
pos.dir = firstDir + "," + pos.dir; pos.dir = firstDir + "," + pos.dir;
return pos; return pos;

Loading…
Cancel
Save