Skip to content

Commit 0594ed4

Browse files
committed
discard last margin adjustment when there are too many redraws
1 parent 2504f1e commit 0594ed4

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/plots/plots.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2032,6 +2032,7 @@ plots.doAutoMargin = function(gd) {
20322032
if(fullLayout._redrawFromAutoMarginCount < maxNumberOfRedraws) {
20332033
return Registry.call('plot', gd);
20342034
} else {
2035+
fullLayout._size = oldMargins;
20352036
Lib.warn('Too many auto-margin redraws.');
20362037
}
20372038
}

0 commit comments

Comments
 (0)