Skip to content

Commit 862578e

Browse files
committed
autosize: fix condition to call sanitizeMargins
1 parent 3ed69b1 commit 862578e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/plots/plots.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -773,7 +773,7 @@ plots.supplyLayoutGlobalDefaults = function(layoutIn, layoutOut) {
773773
coerce('margin.autoexpand');
774774

775775
// called in plotAutoSize otherwise
776-
if(layoutOut.width && layoutOut.height) plots.sanitizeMargins(layoutOut);
776+
if(layoutIn.width && layoutIn.height) plots.sanitizeMargins(layoutOut);
777777

778778
coerce('paper_bgcolor');
779779

0 commit comments

Comments
 (0)