From 653a396a22ce422d83c26fe45aac4acbcbf3675a Mon Sep 17 00:00:00 2001 From: guy Date: Tue, 24 Aug 2021 10:31:36 +0800 Subject: [PATCH 1/2] =?UTF-8?q?BI-92741=20=E4=B9=9D=E6=95=B0=E4=BA=91toast?= =?UTF-8?q?=E7=9A=84=E5=87=BA=E7=8E=B0=E4=BD=8D=E7=BD=AE=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/base/foundation/message.js | 4 ++-- src/core/system.js | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) 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 }, }; From 06d8cda9da76dad9ad16142736feda758ace224e Mon Sep 17 00:00:00 2001 From: guy Date: Tue, 24 Aug 2021 10:42:51 +0800 Subject: [PATCH 2/2] =?UTF-8?q?=E6=95=B4=E7=90=86=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/core/system.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/system.js b/src/core/system.js index 558b36e5e..3fae2a600 100644 --- a/src/core/system.js +++ b/src/core/system.js @@ -11,7 +11,7 @@ TOOL_BAR_HEIGHT: 24, LIST_ITEM_HEIGHT: 24, TRIGGER_HEIGHT: 24, - TOAST_TOP: 40 + TOAST_TOP: 10 }, };