You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
First, you must hover over the graph at least once, so the tooltip will be triggered and shown.
When moving your mouse away from the graph, the tooltip will hide again.
Now, try to resize your browser window. As you see, nothing strange happens.
Case 2 (bug):
Now, set the grid option as shown above (top, left, right, bottom to 0).
Then hover your mouse over the graph so the tooltip is triggered,
Then move away from the graph again, so the tooltip will be hidden.
Now resize you browser window and see what happens: the tooltip gets triggered.
Why does this happen?
I don't know. I have a page with about 6 graphs, and on window resizing, they all started to show their tooltips. I've narrowed it down to:
grid options
the tooltip must be triggered at least once
I think it may be triggered because since there are no outer edges anymore, so the mouseout function is not called correctly, so the tooltip won't be in it's correct hiding state.
This problem may also happen without setting the grid padding to 0, but it happens way more when you do so.
Tested with:
Chrome 49.0
Windows 10
The text was updated successfully, but these errors were encountered:
jeffrey-roosendaal
changed the title
Tooltip triggered on resize when there's no grid padding
Tooltip triggered on resize
Apr 13, 2016
Problem:
When using:
the tooltip is triggered after a
window resize
.How to duplicate:
Go to, for example: http://echarts.baidu.com/demo.html#area-stack.
Case 1 (correct behaviour):
Case 2 (bug):
grid
option as shown above (top
,left
,right
,bottom
to0
).Why does this happen?
I don't know. I have a page with about 6 graphs, and on window resizing, they all started to show their tooltips. I've narrowed it down to:
I think it may be triggered because since there are no outer edges anymore, so the
mouseout
function is not called correctly, so the tooltip won't be in it's correct hiding state.This problem may also happen without setting the grid padding to 0, but it happens way more when you do so.
Tested with:
The text was updated successfully, but these errors were encountered: