Skip to content

Commit 1c7e9ff

Browse files
committed
[tmp] add console.log in plots.js
1 parent e190e4b commit 1c7e9ff

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/plots/plots.js

+3
Original file line numberDiff line numberDiff line change
@@ -1822,10 +1822,12 @@ plots.autoMargin = function(gd, id, o) {
18221822
// make sure you can still grab it and bring it back
18231823
if(o.l + o.r > fullLayout.width * 0.5) {
18241824
Lib.log('Margin push', id, 'is too big in x, dropping');
1825+
// console.log('Too big in X', [o.l, o.r], o.l + o.r, fullLayout.width / 2)
18251826
o.l = o.r = 0;
18261827
}
18271828
if(o.b + o.t > fullLayout.height * 0.5) {
18281829
Lib.log('Margin push', id, 'is too big in y, dropping');
1830+
// console.log('Too big in Y', [o.b, o.t], o.b, o.t, fullLayout.height / 2)
18291831
o.b = o.t = 0;
18301832
}
18311833

@@ -1955,6 +1957,7 @@ plots.didMarginChange = function(margin0, margin1) {
19551957
// use 1px tolerance in case we old/new differ only
19561958
// by rounding errors, which can lead to infinite loops
19571959
if(!isNumeric(m0) || Math.abs(m1 - m0) > 1) {
1960+
// console.log('Margin changed', margin0, '-->', margin1)
19581961
return true;
19591962
}
19601963
}

0 commit comments

Comments
 (0)