Index: trunk/parsers/wikidom/lib/es/es.TextFlow.js |
— | — | @@ -355,10 +355,12 @@ |
356 | 356 | start = middle; |
357 | 357 | } |
358 | 358 | } while ( start < end ); |
359 | | - // Final measurment |
360 | | - ruler.innerHTML = this.escape( |
361 | | - this.content.substring( this.boundaries[offset], this.boundaries[start] ) |
362 | | - ); |
| 359 | + // Final measurement if start isn't at middle |
| 360 | + if ( start !== middle ) { |
| 361 | + ruler.innerHTML = this.escape( |
| 362 | + this.content.substring( this.boundaries[offset], this.boundaries[start] ) |
| 363 | + ); |
| 364 | + } |
363 | 365 | return { 'end': start, 'width': ruler.clientWidth }; |
364 | 366 | }; |
365 | 367 | |
— | — | @@ -397,7 +399,9 @@ |
398 | 400 | start = middle; |
399 | 401 | } |
400 | 402 | } while ( start < end ); |
401 | | - // Final measurement |
402 | | - ruler.innerHTML = this.escape( this.content.substring( offset, start ) ); |
| 403 | + // Final measurement if start isn't at middle |
| 404 | + if ( start !== middle ) { |
| 405 | + ruler.innerHTML = this.escape( this.content.substring( offset, start ) ); |
| 406 | + } |
403 | 407 | return { 'end': start, 'width': ruler.clientWidth }; |
404 | 408 | }; |