Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 63ddd94 commit 512679eCopy full SHA for 512679e
src/plots/plots.js
@@ -293,17 +293,16 @@ plots.resize = function(gd) {
293
return;
294
}
295
296
- delete gd._fullLayout._initialAutoSizeIsDone;
297
- if(!gd.layout.width) delete (gd._fullLayout || {}).width;
298
- if(!gd.layout.height) delete (gd._fullLayout || {}).height;
+ delete gd.layout.width;
+ delete gd.layout.height;
299
300
// autosizing doesn't count as a change that needs saving
301
var oldchanged = gd.changed;
302
303
// nor should it be included in the undo queue
304
gd.autoplay = true;
305
306
- Plotly.plot(gd).then(function() {
+ Plotly.relayout(gd, { autosize: true }).then(function() {
307
gd.changed = oldchanged;
308
resolve(gd);
309
});
0 commit comments