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 6b889eb commit 932e6afCopy full SHA for 932e6af
js/src/Figure.js
@@ -793,10 +793,22 @@ var FigureView = widgets.DOMWidgetView.extend({
793
*/
794
processPhosphorMessage: function(msg) {
795
FigureView.__super__.processPhosphorMessage.apply(this, arguments);
796
+ var that = this;
797
switch (msg.type) {
798
case 'after-attach':
799
this.perform_render();
800
break;
801
+ case 'resize':
802
+ var layout = this.model.get('_layout');
803
+ if (_.isNil(layout) ||
804
+ (_.isNil(layout.width) && _.isNil(layout.height))) {
805
+ Plotly.Plots.resize(this.el).then(function(){
806
+ var layout_edit_id = that.model.get(
807
+ "_last_layout_edit_id");
808
+ that._sendLayoutDelta(layout_edit_id);
809
+ });
810
+ }
811
+ break
812
}
813
},
814
0 commit comments