This commit is contained in:
Fabian Jakobs 2011-12-21 16:23:36 +01:00
commit c52d1b2030
7 changed files with 15 additions and 15 deletions

File diff suppressed because one or more lines are too long

View file

@ -11802,7 +11802,7 @@ var VirtualRenderer = function(container, theme) {
this.scrollBar.setHeight(size.scrollerHeight);
if (this.session) {
this.scrollToY(this.getScrollTop());
this.session.setScrollTop(this.getScrollTop());
changes = changes | this.CHANGE_FULL;
}
}
@ -12201,11 +12201,11 @@ var VirtualRenderer = function(container, theme) {
var top = pos.top;
if (this.scrollTop > top) {
this.scrollToY(top);
this.session.setScrollTop(top);
}
if (this.scrollTop + this.$size.scrollerHeight < top + this.lineHeight) {
this.scrollToY(top + this.lineHeight - this.$size.scrollerHeight);
this.session.setScrollTop(top + this.lineHeight - this.$size.scrollerHeight);
}
var scrollLeft = this.scrollLeft;
@ -12241,7 +12241,7 @@ var VirtualRenderer = function(container, theme) {
};
this.scrollToRow = function(row) {
this.scrollToY(row * this.lineHeight);
this.session.setScrollTop(row * this.lineHeight);
};
this.scrollToLine = function(line, center) {
@ -12254,7 +12254,7 @@ var VirtualRenderer = function(container, theme) {
if (center) {
offset -= this.$size.scrollerHeight / 2;
}
this.scrollToY(offset);
this.session.setScrollTop(offset);
};
this.scrollToY = function(scrollTop) {

View file

@ -11802,7 +11802,7 @@ var VirtualRenderer = function(container, theme) {
this.scrollBar.setHeight(size.scrollerHeight);
if (this.session) {
this.scrollToY(this.getScrollTop());
this.session.setScrollTop(this.getScrollTop());
changes = changes | this.CHANGE_FULL;
}
}
@ -12201,11 +12201,11 @@ var VirtualRenderer = function(container, theme) {
var top = pos.top;
if (this.scrollTop > top) {
this.scrollToY(top);
this.session.setScrollTop(top);
}
if (this.scrollTop + this.$size.scrollerHeight < top + this.lineHeight) {
this.scrollToY(top + this.lineHeight - this.$size.scrollerHeight);
this.session.setScrollTop(top + this.lineHeight - this.$size.scrollerHeight);
}
var scrollLeft = this.scrollLeft;
@ -12241,7 +12241,7 @@ var VirtualRenderer = function(container, theme) {
};
this.scrollToRow = function(row) {
this.scrollToY(row * this.lineHeight);
this.session.setScrollTop(row * this.lineHeight);
};
this.scrollToLine = function(line, center) {
@ -12254,7 +12254,7 @@ var VirtualRenderer = function(container, theme) {
if (center) {
offset -= this.$size.scrollerHeight / 2;
}
this.scrollToY(offset);
this.session.setScrollTop(offset);
};
this.scrollToY = function(scrollTop) {

File diff suppressed because one or more lines are too long

View file

@ -120,7 +120,7 @@ function initSender() {
var main;
var sender;
var onmessage = function(e) {
onmessage = function(e) {
var msg = e.data;
if (msg.command) {
main[msg.command].apply(main, msg.args);

View file

@ -120,7 +120,7 @@ function initSender() {
var main;
var sender;
var onmessage = function(e) {
onmessage = function(e) {
var msg = e.data;
if (msg.command) {
main[msg.command].apply(main, msg.args);

View file

@ -120,7 +120,7 @@ function initSender() {
var main;
var sender;
var onmessage = function(e) {
onmessage = function(e) {
var msg = e.data;
if (msg.command) {
main[msg.command].apply(main, msg.args);