Fix for replaceAll in a range. Fix for no session ace

This commit is contained in:
Ruben Daniels 2013-04-24 21:12:48 +00:00
commit 9796369696
2 changed files with 8 additions and 3 deletions

View file

@ -297,7 +297,7 @@ var VirtualRenderer = function(container, theme) {
changes = this.CHANGE_SIZE;
size.scrollerHeight = this.scroller.clientHeight;
if (!size.scrollerHeight) {
if (force || !size.scrollerHeight) {
size.scrollerHeight = size.height;
if (this.$horizScroll)
size.scrollerHeight -= this.scrollBar.getWidth();
@ -322,7 +322,7 @@ var VirtualRenderer = function(container, theme) {
size.scrollerWidth = Math.max(0, width - gutterWidth - this.scrollBar.getWidth());
this.scroller.style.right = this.scrollBar.getWidth() + "px";
if (this.session.getUseWrapMode() && this.adjustWrapLimit() || force)
if (this.session && this.session.getUseWrapMode() && this.adjustWrapLimit() || force)
changes = changes | this.CHANGE_FULL;
}