Skip to content

Commit 404fe7a

Browse files
committed
fix issue 4459 - provide more room to bring back large computed margins
1 parent 5d4c888 commit 404fe7a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/plots/plots.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -1900,11 +1900,11 @@ plots.autoMargin = function(gd, id, o) {
19001900

19011901
// if the item is too big, just give it enough automargin to
19021902
// make sure you can still grab it and bring it back
1903-
if(o.l + o.r > fullLayout.width * 0.5) {
1903+
if(o.l + o.r > fullLayout.width) {
19041904
Lib.log('Margin push', id, 'is too big in x, dropping');
19051905
o.l = o.r = 0;
19061906
}
1907-
if(o.b + o.t > fullLayout.height * 0.5) {
1907+
if(o.b + o.t > fullLayout.height) {
19081908
Lib.log('Margin push', id, 'is too big in y, dropping');
19091909
o.b = o.t = 0;
19101910
}

0 commit comments

Comments
 (0)