We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 862578e commit 172d81dCopy full SHA for 172d81d
src/plots/plots.js
@@ -497,6 +497,12 @@ plots.supplyDefaults = function(gd) {
497
autosizable = gd._context && gd._context.autosizable,
498
initialAutoSize = missingWidthOrHeight && (autosize || autosizable);
499
if(initialAutoSize) plots.plotAutoSize(gd, newLayout, newFullLayout);
500
+
501
+ // for backwards-compatibility with Plotly v1.x.x
502
+ if(!autosize && missingWidthOrHeight) {
503
+ newLayout.width = newFullLayout.width;
504
+ newLayout.height = newFullLayout.height;
505
+ }
506
}
507
508
newFullLayout._initialAutoSizeIsDone = true;
0 commit comments