Browse Source

Pull request #2117: BI-92741 九数云toast的出现位置调整

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

* commit '06d8cda9da76dad9ad16142736feda758ace224e':
  整理代码
  BI-92741 九数云toast的出现位置调整
es6
guy 3 years ago
parent
commit
152c1d1fd6
  1. 4
      src/base/foundation/message.js
  2. 1
      src/core/system.js

4
src/base/foundation/message.js

@ -37,7 +37,7 @@ BI.Msg = function () {
eventName: BI.Toast.EVENT_DESTORY,
action: function () {
BI.remove(toastStack, toast.element);
var _height = 10;
var _height = BI.SIZE_CONSANTS.TOAST_TOP;
BI.each(toastStack, function (i, element) {
element.css({"top": _height});
_height += element.outerHeight() + 10;
@ -46,7 +46,7 @@ BI.Msg = function () {
}
}]
});
var height = 10;
var height = BI.SIZE_CONSANTS.TOAST_TOP;
BI.each(toastStack, function (i, element) {
height += element.outerHeight() + 10;
});

1
src/core/system.js

@ -11,6 +11,7 @@
TOOL_BAR_HEIGHT: 24,
LIST_ITEM_HEIGHT: 24,
TRIGGER_HEIGHT: 24,
TOAST_TOP: 10
},
};

Loading…
Cancel
Save