Skip to content

Commit

Permalink
chore: merge branch 'master' of https://github.com/plainheart/echarts…
Browse files Browse the repository at this point in the history
  • Loading branch information
plainheart committed Apr 13, 2023
2 parents 8dad916 + 045d0fb commit 6d75898
Show file tree
Hide file tree
Showing 7 changed files with 23 additions and 6 deletions.
7 changes: 6 additions & 1 deletion dist/echarts-extension-gmap.cjs.js
Original file line number Diff line number Diff line change
Expand Up @@ -341,7 +341,12 @@ var GMapView = {
});
};
var resizeHandler = function resizeHandler() {
echarts.getInstanceByDom(api.getDom()).resize();
var width = offsetEl.firstChild.clientWidth;
var height = offsetEl.firstChild.clientHeight;
echarts.getInstanceByDom(api.getDom()).resize({
width: width,
height: height
});
};
this._oldRenderHandler && this._oldRenderHandler.remove();
if (!renderOnMoving) {
Expand Down
7 changes: 6 additions & 1 deletion dist/echarts-extension-gmap.esm.js
Original file line number Diff line number Diff line change
Expand Up @@ -338,7 +338,12 @@ var GMapView = {
});
};
var resizeHandler = function resizeHandler() {
getInstanceByDom(api.getDom()).resize();
var width = offsetEl.firstChild.clientWidth;
var height = offsetEl.firstChild.clientHeight;
getInstanceByDom(api.getDom()).resize({
width: width,
height: height
});
};
this._oldRenderHandler && this._oldRenderHandler.remove();
if (!renderOnMoving) {
Expand Down
7 changes: 6 additions & 1 deletion dist/echarts-extension-gmap.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/echarts-extension-gmap.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/echarts-extension-gmap.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/echarts-extension-gmap.min.js.map

Large diffs are not rendered by default.

2 changes: 2 additions & 0 deletions src/GMapView.js
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,8 @@ const GMapView = {
}

let resizeHandler = function() {
// fix chart can't get resized correctly after the google map enters fullscreen
// See also #14
getInstanceByDom(api.getDom()).resize({
width: mapEl.clientWidth,
height: mapEl.clientHeight
Expand Down

0 comments on commit 6d75898

Please sign in to comment.