Index: trunk/extensions/VisualEditor/modules/es/views/es.SurfaceView.js |
— | — | @@ -75,7 +75,8 @@ |
76 | 76 | } ); |
77 | 77 | this.model.getDocument().on( 'update', function() { |
78 | 78 | _this.emitUpdate( 25 ); |
79 | | - // Respond to layout changes |
| 79 | + } ); |
| 80 | + this.on( 'update', function() { |
80 | 81 | _this.updateSelection( 25 ); |
81 | 82 | } ); |
82 | 83 | this.$.mousedown( function(e) { |
— | — | @@ -117,6 +118,7 @@ |
118 | 119 | if ( _this.dimensions.width !== width ) { |
119 | 120 | _this.dimensions.width = width; |
120 | 121 | _this.documentView.renderContent(); |
| 122 | + _this.emitUpdate( 25 ); |
121 | 123 | } |
122 | 124 | } ); |
123 | 125 | $window.scroll( function() { |