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.
2 parents 0e44d4c + 3b9a73b commit 6577876Copy full SHA for 6577876
js/src/mpl_widget.js
@@ -110,6 +110,11 @@ var MPLCanvasModel = widgets.DOMWidgetModel.extend({
110
},
111
112
resize: function(width, height) {
113
+ // Do not request a super small size, as it seems to break the back-end
114
+ if (width <= 5 || height <= 5) {
115
+ return;
116
+ }
117
+
118
this._for_each_view(function(view) {
119
// Do an initial resize of each view, stretching the old canvas.
120
view.resize_canvas(width, height);
0 commit comments