Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit c64446a

Browse files
committed
[tmp] add some console logs
1 parent a7d8e0d commit c64446a

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/plots/plots.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1847,6 +1847,7 @@ plots.autoMargin = function(gd, id, o) {
18471847
b: {val: yb, size: o.b + pad},
18481848
t: {val: yt, size: o.t + pad}
18491849
};
1850+
// console.log(id, pushMargin[id])
18501851
}
18511852
}
18521853
};
@@ -1941,6 +1942,7 @@ plots.didMarginChange = function(margin0, margin1) {
19411942
// use 1px tolerance in case we old/new differ only
19421943
// by rounding errors, which can lead to infinite loops
19431944
if(!isNumeric(m0) || Math.abs(m1 - m0) > 1) {
1945+
// console.log('margin changed', margin0, '-->', margin1)
19441946
return true;
19451947
}
19461948
}

0 commit comments

Comments
 (0)