Skip to content

Commit d38d9e3

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 b5331e3 commit d38d9e3

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/plot_api/plot_api.js

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

0 commit comments

Comments
 (0)