You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@echarts.apache.org by yu...@apache.org on 2019/12/30 14:08:25 UTC
[incubator-echarts] 01/01: fix bug #11610 pagination disappear
This is an automated email from the ASF dual-hosted git repository.
yufeng04 pushed a commit to branch fix-11610
in repository https://gitbox.apache.org/repos/asf/incubator-echarts.git
commit b6a89c693346afc36c061f420618267102b0aa39
Author: yufeng04 <yu...@baidu.com>
AuthorDate: Mon Dec 30 22:03:40 2019 +0800
fix bug #11610 pagination disappear
---
src/component/legend/ScrollableLegendView.js | 3 +++
test/runTest/actions/__meta__.json | 2 +-
test/runTest/actions/legend.json | 2 +-
3 files changed, 5 insertions(+), 2 deletions(-)
diff --git a/src/component/legend/ScrollableLegendView.js b/src/component/legend/ScrollableLegendView.js
index 0c68a12..668f2dc 100644
--- a/src/component/legend/ScrollableLegendView.js
+++ b/src/component/legend/ScrollableLegendView.js
@@ -479,6 +479,9 @@ var ScrollableLegendView = LegendView.extend({
}
});
}
+ else {
+ return 0;
+ }
return index != null ? index : defaultIndex;
}
diff --git a/test/runTest/actions/__meta__.json b/test/runTest/actions/__meta__.json
index 8fcd269..767e44d 100644
--- a/test/runTest/actions/__meta__.json
+++ b/test/runTest/actions/__meta__.json
@@ -86,7 +86,7 @@
"hoverStyle2": 1,
"label-position": 1,
"largeLine-tooltip": 1,
- "legend": 6,
+ "legend": 7,
"legend-visualMapColor": 2,
"line": 1,
"line-animation": 1,
diff --git a/test/runTest/actions/legend.json b/test/runTest/actions/legend.json
index 4d8ea33..9760567 100644
--- a/test/runTest/actions/legend.json
+++ b/test/runTest/actions/legend.json
@@ -1 +1 @@
-[{"name":"Action 1","ops":[{"type":"mousedown","time":287,"x":398,"y":538},{"type":"mousemove","time":321,"x":398,"y":538},{"type":"mousemove","time":534,"x":320,"y":484},{"type":"mousemove","time":743,"x":196,"y":432},{"type":"mouseup","time":1133,"x":196,"y":432},{"time":1134,"delay":400,"type":"screenshot-auto"},{"type":"mousedown","time":1574,"x":196,"y":432},{"type":"mousemove","time":1646,"x":200,"y":432},{"type":"mousemove","time":1846,"x":372,"y":443},{"type":"mousemove","time":2 [...]
\ No newline at end of file
+[{"name":"Action 1","ops":[{"type":"mousedown","time":287,"x":398,"y":538},{"type":"mousemove","time":321,"x":398,"y":538},{"type":"mousemove","time":534,"x":320,"y":484},{"type":"mousemove","time":743,"x":196,"y":432},{"type":"mouseup","time":1133,"x":196,"y":432},{"time":1134,"delay":400,"type":"screenshot-auto"},{"type":"mousedown","time":1574,"x":196,"y":432},{"type":"mousemove","time":1646,"x":200,"y":432},{"type":"mousemove","time":1846,"x":372,"y":443},{"type":"mousemove","time":2 [...]
\ No newline at end of file
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org
For additional commands, e-mail: commits-help@echarts.apache.org