Skip to content

Commit f1415f8

Browse files
committed
autosize: Remove unnecessary guard in plotAutoSize
* Commit 5df675a (fix demo/outside legend bug and null data autoscale bug) introduced a guard in plotAutoSize to avoid calling layoutStyles while autosize is set to 'initial'. * Commit ee974d9 (autosizing in shareplots, autosize aspect ratio restrictions and ...) removed the call to layoutStyles but forgot to remove the guard. * This commit removes the guard. * Checked that all the jasmine and image tests still pass.
1 parent b5c9827 commit f1415f8

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/plot_api/plot_api.js

+1-2
Original file line numberDiff line numberDiff line change
@@ -2570,8 +2570,7 @@ function plotAutoSize(gd, aobj) {
25702570
}
25712571
// if there's no size change, update layout but
25722572
// delete the autosize attr so we don't redraw
2573-
// but can't call layoutStyles for initial autosize
2574-
else if(fullLayout.autosize !== 'initial') {
2573+
else {
25752574
delete(aobj.autosize);
25762575
fullLayout.autosize = gd.layout.autosize = true;
25772576
}

0 commit comments

Comments
 (0)