Skip to content

Commit 86331c7

Browse files
committed
lint in Plots.autoMargin
1 parent a5e6aaa commit 86331c7

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/plots/plots.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -847,10 +847,12 @@ plots.sanitizeMargins = function(fullLayout) {
847847
// o is {x,l,r,y,t,b} where x and y are plot fractions,
848848
// the rest are pixels in each direction
849849
// or leave o out to delete this entry (like if it's hidden)
850-
plots.autoMargin = function(gd,id,o) {
850+
plots.autoMargin = function(gd, id, o) {
851851
var fullLayout = gd._fullLayout;
852+
852853
if(!fullLayout._pushmargin) fullLayout._pushmargin = {};
853-
if(fullLayout.margin.autoexpand!==false) {
854+
855+
if(fullLayout.margin.autoexpand !== false) {
854856
if(!o) delete fullLayout._pushmargin[id];
855857
else {
856858
var pad = o.pad === undefined ? 12 : o.pad;

0 commit comments

Comments
 (0)