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 8c052b8 + bbd66f4 commit e715219Copy full SHA for e715219
js/src/mpl_widget.js
@@ -226,10 +226,8 @@ var MPLCanvasView = widgets.DOMWidgetView.extend({
226
this.canvas.setAttribute('height', height * this.ratio);
227
this.canvas.style.width = width + 'px';
228
229
- this.rubberband_canvas.setAttribute('width', width * this.ratio);
230
- this.rubberband_canvas.setAttribute('height', height * this.ratio);
231
- this.rubberband_canvas.style.height = height + 'px';
232
+ this.rubberband_canvas.setAttribute('width', width);
+ this.rubberband_canvas.setAttribute('height', height);
233
},
234
235
send_message: function(type, message = {}) {
0 commit comments