You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@echarts.apache.org by su...@apache.org on 2019/09/07 18:32:30 UTC
[incubator-echarts] 04/06: fix: make the comment clear more.
This is an automated email from the ASF dual-hosted git repository.
sushuang pushed a commit to branch fix/release-4.3.0-fix
in repository https://gitbox.apache.org/repos/asf/incubator-echarts.git
commit 86d16559d2d8d2b55ee9f8ed0ff91db009912bd4
Author: sushuang <su...@gmail.com>
AuthorDate: Sun Sep 8 01:30:11 2019 +0800
fix: make the comment clear more.
---
extension-src/dataTool/gexf.js | 8 ++++++--
src/component/tooltip/TooltipContent.js | 2 ++
2 files changed, 8 insertions(+), 2 deletions(-)
diff --git a/extension-src/dataTool/gexf.js b/extension-src/dataTool/gexf.js
index 91d9dca..ef3d0a6 100644
--- a/extension-src/dataTool/gexf.js
+++ b/extension-src/dataTool/gexf.js
@@ -17,8 +17,12 @@
* under the License.
*/
-// GEXF File Parser
-// http://gexf.net/1.2draft/gexf-12draft-primer.pdf
+/**
+ * This is a parse of GEXF.
+ *
+ * The spec of GEXF:
+ * https://gephi.org/gexf/1.2draft/gexf-12draft-primer.pdf
+ */
import * as zrUtil from 'zrender/src/core/util';
diff --git a/src/component/tooltip/TooltipContent.js b/src/component/tooltip/TooltipContent.js
index 40277e3..0afa1a0 100644
--- a/src/component/tooltip/TooltipContent.js
+++ b/src/component/tooltip/TooltipContent.js
@@ -219,7 +219,9 @@ TooltipContent.prototype = {
var el = this.el;
el.style.cssText = gCssText + assembleCssText(tooltipModel)
+ // Because of the reason described in:
// http://stackoverflow.com/questions/21125587/css3-transition-not-working-in-chrome-anymore
+ // we should set initial value to `left` and `top`.
+ ';left:' + this._x + 'px;top:' + this._y + 'px;'
+ (tooltipModel.get('extraCssText') || '');
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org
For additional commands, e-mail: commits-help@echarts.apache.org