diff --git a/src/base/foundation/message.js b/src/base/foundation/message.js index 4fbef7eb6..0b9b174ce 100644 --- a/src/base/foundation/message.js +++ b/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; }); diff --git a/src/core/system.js b/src/core/system.js index 54e60e8d8..558b36e5e 100644 --- a/src/core/system.js +++ b/src/core/system.js @@ -11,6 +11,7 @@ TOOL_BAR_HEIGHT: 24, LIST_ITEM_HEIGHT: 24, TRIGGER_HEIGHT: 24, + TOAST_TOP: 40 }, };