Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions js/src/mpl_widget.js
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,11 @@ var MPLCanvasModel = widgets.DOMWidgetModel.extend({
},

resize: function(width, height) {
// Do not request a super small size, as it seems to break the back-end
if (width <= 5 || height <= 5) {
return;
}

this._for_each_view(function(view) {
// Do an initial resize of each view, stretching the old canvas.
view.resize_canvas(width, height);
Expand Down