From 92e717027467dc7c0fdf679e3daa2b78c37158f3 Mon Sep 17 00:00:00 2001 From: windy <1374721899@qq.com> Date: Tue, 18 Jun 2019 19:31:32 +0800 Subject: [PATCH 1/2] =?UTF-8?q?BI-46461=20fix:=20safari=E4=B8=8B=E7=9A=84t?= =?UTF-8?q?itle=E6=98=BE=E7=A4=BA=E5=85=BC=E5=AE=B9=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/base/single/tip/tip.tooltip.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/base/single/tip/tip.tooltip.js b/src/base/single/tip/tip.tooltip.js index 84e307299..f319d12d5 100644 --- a/src/base/single/tip/tip.tooltip.js +++ b/src/base/single/tip/tip.tooltip.js @@ -57,12 +57,12 @@ BI.Tooltip = BI.inherit(BI.Tip, { }); } else { this.text = BI.createWidget({ - type: "bi.text", + type: "bi.label", element: this, textAlign: "left", whiteSpace: "normal", text: o.text, - height: 16, + textHeight: 16, hgap: this._const.hgap }); } From e67410782d77d769008899da9b66ccde607edd5b Mon Sep 17 00:00:00 2001 From: windy <1374721899@qq.com> Date: Tue, 18 Jun 2019 19:46:45 +0800 Subject: [PATCH 2/2] =?UTF-8?q?BI-46461=20fix:=20safari=E7=9A=84title?= =?UTF-8?q?=E6=98=BE=E7=A4=BA=E5=85=BC=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 | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/base/single/tip/tip.tooltip.js b/src/base/single/tip/tip.tooltip.js index f319d12d5..9d396507d 100644 --- a/src/base/single/tip/tip.tooltip.js +++ b/src/base/single/tip/tip.tooltip.js @@ -62,7 +62,8 @@ BI.Tooltip = BI.inherit(BI.Tip, { textAlign: "left", whiteSpace: "normal", text: o.text, - textHeight: 16, + height: o.height, + textHeight: o.height - 2, hgap: this._const.hgap }); }