From 735ca3119cef06dcabb99d9964de29cf9c4fef18 Mon Sep 17 00:00:00 2001 From: windy <1374721899@qq.com> Date: Fri, 9 Aug 2019 16:56:55 +0800 Subject: [PATCH] =?UTF-8?q?BI-49702=20refactor:=20tooltip=E5=85=BC?= =?UTF-8?q?=E5=AE=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/base/single/tip/tip.tooltip.js | 6 ++---- src/core/controller/controller.tooltips.js | 3 +-- 2 files changed, 3 insertions(+), 6 deletions(-) diff --git a/src/base/single/tip/tip.tooltip.js b/src/base/single/tip/tip.tooltip.js index c8b5b053d..83b8650fe 100644 --- a/src/base/single/tip/tip.tooltip.js +++ b/src/base/single/tip/tip.tooltip.js @@ -17,8 +17,7 @@ BI.Tooltip = BI.inherit(BI.Tip, { text: "", level: "success", // success或warning stopEvent: false, - stopPropagation: false, - height: 18 + stopPropagation: false }); }, _init: function () { @@ -62,8 +61,7 @@ BI.Tooltip = BI.inherit(BI.Tip, { textAlign: "left", whiteSpace: "normal", text: o.text, - height: o.height, - textHeight: o.height - 2, + textHeight: 18, hgap: this._const.hgap }); } diff --git a/src/core/controller/controller.tooltips.js b/src/core/controller/controller.tooltips.js index 10488d30f..56d000329 100644 --- a/src/core/controller/controller.tooltips.js +++ b/src/core/controller/controller.tooltips.js @@ -26,8 +26,7 @@ BI.TooltipsController = BI.inherit(BI.Controller, { type: "bi.tooltip", text: text, level: level, - stopEvent: true, - height: this._const.height + stopEvent: true }); },