Skip to content

Commit

Permalink
fix: #12812
Browse files Browse the repository at this point in the history
  • Loading branch information
liulinboyi committed Jun 19, 2020
1 parent 3bb072c commit 8bc6ecc
Showing 1 changed file with 15 additions and 1 deletion.
16 changes: 15 additions & 1 deletion src/echarts.js
Original file line number Diff line number Diff line change
Expand Up @@ -861,7 +861,7 @@ var updateMethods = {
}

scheduler.restoreData(ecModel, payload);

hideTooltip.call(this);
scheduler.performSeriesTasks(ecModel);

// TODO
Expand Down Expand Up @@ -1142,8 +1142,22 @@ echartsProto.resize = function (opts) {
flushPendingActions.call(this, silent);

triggerUpdatedEvent.call(this, silent);

hideTooltip.call(this);
};

/**
* when alwaysShowContent is true change or rotation window size and restore will hide tooltip
*/
function hideTooltip() {
const tooltips = this._componentsViews.filter(item => item.__model.mainType === 'tooltip');
each(tooltips, function (tooltip) {
tooltip._tooltipModel
&& tooltip.__model.option.alwaysShowContent
&& tooltip._tooltipContent.hideLater(tooltip._tooltipModel.get('hideDelay'));
});
}

function updateStreamModes(ecIns, ecModel) {
var chartsMap = ecIns._chartsMap;
var scheduler = ecIns._scheduler;
Expand Down

0 comments on commit 8bc6ecc

Please sign in to comment.