Browse Source

BI-92741 九数云toast的出现位置调整

es6
guy 3 years ago
parent
commit
653a396a22
  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: 40
},
};

Loading…
Cancel
Save