Browse Source

Pull request #2446: feature: 小三角换一种实现

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

* commit '7abb93f8dd3bfb786a15e0cfdea72e5fad36e5da':
  feature: 小三角换一种实现
es6
guy 3 years ago
parent
commit
37974123a2
  1. 12
      src/base/layer/layer.popup.js

12
src/base/layer/layer.popup.js

@ -199,7 +199,7 @@ BI.PopupView = BI.inherit(BI.Widget, {
}; };
placeholderStyle = { placeholderStyle = {
width: size.width, width: size.width,
left: 0, left: "",
right: 0, right: 0,
height: this._const.TRIANGLE_LENGTH, height: this._const.TRIANGLE_LENGTH,
top: -this._const.TRIANGLE_LENGTH, top: -this._const.TRIANGLE_LENGTH,
@ -228,11 +228,11 @@ BI.PopupView = BI.inherit(BI.Widget, {
}; };
placeholderStyle = { placeholderStyle = {
width: size.width, width: size.width,
left: 0, left: "",
right: 0, right: 0,
height: this._const.TRIANGLE_LENGTH, height: this._const.TRIANGLE_LENGTH,
top: -this._const.TRIANGLE_LENGTH, top: "",
bottom: "" bottom: -this._const.TRIANGLE_LENGTH
}; };
break; break;
case "left": case "left":
@ -257,7 +257,7 @@ BI.PopupView = BI.inherit(BI.Widget, {
}; };
placeholderStyle = { placeholderStyle = {
height: size.height, height: size.height,
top: 0, top: "",
bottom: 0, bottom: 0,
width: this._const.TRIANGLE_LENGTH, width: this._const.TRIANGLE_LENGTH,
right: -this._const.TRIANGLE_LENGTH, right: -this._const.TRIANGLE_LENGTH,
@ -286,7 +286,7 @@ BI.PopupView = BI.inherit(BI.Widget, {
}; };
placeholderStyle = { placeholderStyle = {
height: size.height, height: size.height,
top: 0, top: "",
bottom: 0, bottom: 0,
width: this._const.TRIANGLE_LENGTH, width: this._const.TRIANGLE_LENGTH,
left: -this._const.TRIANGLE_LENGTH, left: -this._const.TRIANGLE_LENGTH,

Loading…
Cancel
Save