Skip to content

Commit

Permalink
Max call stack exceeded at browser zoom 110%
Browse files Browse the repository at this point in the history
  • Loading branch information
michelezanda committed Jul 20, 2020
1 parent 7dfd07c commit 26baf86
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 9 deletions.
6 changes: 3 additions & 3 deletions dist_ion/plotly-ion.js
Original file line number Diff line number Diff line change
Expand Up @@ -32823,7 +32823,7 @@ exports.svgAttrs = {
var Plotly = require('./plotly');

// package version injected by `npm run preprocess`
exports.version = '1.33.1-ion40';
exports.version = '1.33.1-ion41';

// inject promise polyfill
require('es6-promise').polyfill();
Expand Down Expand Up @@ -57698,12 +57698,12 @@ plots.autoMargin = function(gd, id, o) {
if(fullLayout.margin.autoexpand !== false) {
if(!o) delete fullLayout._pushmargin[id];
else {
var pad = o.pad === undefined ? 25 : o.pad;
var pad = o.pad === undefined ? 26 : o.pad;

// if the item is too big, just give it enough automargin to
// make sure you can still grab it and bring it back
if(o.l + o.r > fullLayout.width * 0.45) o.l = o.r = 0;
if(o.b + o.t > fullLayout.height * 0.38) o.b = o.t = 0;
if(o.b + o.t > fullLayout.height * 0.4) o.b = o.t = 0;

fullLayout._pushmargin[id] = {
l: {val: o.x, size: o.l + pad},
Expand Down
2 changes: 1 addition & 1 deletion dist_ion/plotly-ion.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "plotly.js",
"version": "1.33.1-ion40",
"version": "1.33.1-ion41",
"description": "The open source javascript graphing library that powers plotly",
"license": "MIT",
"main": "./lib/index.js",
Expand Down
2 changes: 1 addition & 1 deletion src/assets/geo_assets.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,4 @@ var saneTopojson = require('sane-topojson');


// package version injected by `npm run preprocess`
exports.version = '1.33.1-ion40';exports.topojson = saneTopojson;
exports.version = '1.33.1-ion41';exports.topojson = saneTopojson;
2 changes: 1 addition & 1 deletion src/core.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
var Plotly = require('./plotly');

// package version injected by `npm run preprocess`
exports.version = '1.33.1-ion40';
exports.version = '1.33.1-ion41';

// inject promise polyfill
require('es6-promise').polyfill();
Expand Down
4 changes: 2 additions & 2 deletions src/plots/plots.js
Original file line number Diff line number Diff line change
Expand Up @@ -1544,12 +1544,12 @@ plots.autoMargin = function(gd, id, o) {
if(fullLayout.margin.autoexpand !== false) {
if(!o) delete fullLayout._pushmargin[id];
else {
var pad = o.pad === undefined ? 25 : o.pad;
var pad = o.pad === undefined ? 26 : o.pad;

// if the item is too big, just give it enough automargin to
// make sure you can still grab it and bring it back
if(o.l + o.r > fullLayout.width * 0.45) o.l = o.r = 0;
if(o.b + o.t > fullLayout.height * 0.38) o.b = o.t = 0;
if(o.b + o.t > fullLayout.height * 0.4) o.b = o.t = 0;

fullLayout._pushmargin[id] = {
l: {val: o.x, size: o.l + pad},
Expand Down

0 comments on commit 26baf86

Please sign in to comment.