r104789 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r104788‎ | r104789 | r104790 >
Date:23:36, 30 November 2011
Author:tparscal
Status:deferred
Tags:
Comment:
Fixed selection update on resize
Modified paths:
  • /trunk/extensions/VisualEditor/modules/es/views/es.SurfaceView.js (modified) (history)

Diff [purge]

Index: trunk/extensions/VisualEditor/modules/es/views/es.SurfaceView.js
@@ -75,7 +75,8 @@
7676 } );
7777 this.model.getDocument().on( 'update', function() {
7878 _this.emitUpdate( 25 );
79 - // Respond to layout changes
 79+ } );
 80+ this.on( 'update', function() {
8081 _this.updateSelection( 25 );
8182 } );
8283 this.$.mousedown( function(e) {
@@ -117,6 +118,7 @@
118119 if ( _this.dimensions.width !== width ) {
119120 _this.dimensions.width = width;
120121 _this.documentView.renderContent();
 122+ _this.emitUpdate( 25 );
121123 }
122124 } );
123125 $window.scroll( function() {

Status & tagging log