this.lines.addEvent("scroll", function() {
this.scrolleddown = this.scrolledDown();
+ this.scrollpos = this.getScrollParent().getScroll();
}.bind(this));
if(type == qwebirc.ui.WINDOW_CHANNEL) {
this.parentObject.reflow();
},
onResize: function() {
- if(this.scrolleddown)
- this.scrollToBottom();
+ if(this.scrolleddown) {
+ if(Browser.Engine.trident) {
+ this.scrollToBottom.delay(5, this);
+ } else {
+ this.scrollToBottom();
+ }
+ } else if($defined(this.scrollpos)) {
+ if(Browser.Engine.trident) {
+ this.getScrollParent().scrollTo(this.scrollpos.x, this.scrollpos.y);
+ } else {
+ this.getScrollParent().scrollTo.delay(5, this, [this.scrollpos.x, this.scrollpos.y]);
+ }
+ }
},
createMenu: function(nick, parent) {
var e = new Element("div");