do not change scroller classname before rendering

This commit is contained in:
nightwing 2012-05-04 10:18:57 +04:00
commit b73c259b01

View file

@ -139,10 +139,6 @@ var VirtualRenderer = function(container, theme) {
var scrollLeft = _self.scroller.scrollLeft;
_self.scrollLeft = scrollLeft;
_self.session.setScrollLeft(scrollLeft);
_self.scroller.className = scrollLeft == 0
? "ace_scroller"
: "ace_scroller horscroll";
});
this.cursorPos = {
@ -651,6 +647,8 @@ var VirtualRenderer = function(container, theme) {
var scrollLeft = this.scroller.scrollLeft;
this.scrollLeft = scrollLeft;
this.session.setScrollLeft(scrollLeft);
this.scroller.className = this.scrollLeft == 0 ? "ace_scroller" : "ace_scroller horscroll";
}
// full