We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent fdb0a2a commit c336daeCopy full SHA for c336dae
src/plots/plots.js
@@ -232,14 +232,14 @@ plots.redrawText = function(gd) {
232
};
233
234
// resize plot about the container size
235
-plots.resize = function (gd) {
+plots.resize = function(gd) {
236
if (!gd || d3.select(gd).style('display') === 'none') return;
237
238
- return new Promise(function (resolve) {
239
-
+ return new Promise(function(resolve) {
+
240
if (gd._redrawTimer) clearTimeout(gd._redrawTimer);
241
242
- gd._redrawTimer = setTimeout(function () {
+ gd._redrawTimer = setTimeout(function() {
243
if ((gd._fullLayout || {}).autosize) {
244
// autosizing doesn't count as a change that needs saving
245
var oldchanged = gd.changed;
0 commit comments