r91313 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r91312‎ | r91313 | r91314 >
Date:22:38, 1 July 2011
Author:inez
Status:deferred
Tags:
Comment:
Fix getOffset function
Modified paths:
  • /trunk/parsers/wikidom/lib/es/es.TextFlow.js (modified) (history)

Diff [purge]

Index: trunk/parsers/wikidom/lib/es/es.TextFlow.js
@@ -60,7 +60,7 @@
6161 * positions, which is a nice benefit of this method.
6262 */
6363 while ( line < lineCount ) {
64 - bottom += lines[line].height;
 64+ bottom += this.lines[line].height;
6565 if ( position.y >= top && position.y < bottom ) {
6666 break;
6767 }
@@ -79,7 +79,7 @@
8080 */
8181 var $ruler = $( '<div class="editSurface-line"></div>' ).appendTo( this.$ )
8282 ruler = $ruler[0],
83 - fit = this.fitCharacters( lines[line].start, lines[line].end, ruler, position.x );
 83+ fit = this.fitCharacters( this.lines[line].start, this.lines[line].end, ruler, position.x );
8484 $ruler.remove();
8585
8686 return fit.end;

Status & tagging log