Merge pull request #1520 from ajaxorg/wrap

Wrapping issues
This commit is contained in:
Lennart Kats 2013-08-07 07:10:21 -07:00
commit 42d243df4b
11 changed files with 61 additions and 80 deletions

View file

@ -990,7 +990,7 @@ var VirtualRenderer = function(container, theme) {
this.$getLongestLine = function() {
var charCount = this.session.getScreenWidth();
if (this.$textLayer.showInvisibles)
if (this.showInvisibles && !this.session.$useWrapMode)
charCount += 1;
return Math.max(this.$size.scrollerWidth - 2 * this.$padding, Math.round(charCount * this.characterWidth));