tabclose.addEvent("click", close);
this.tab.addEvent("mouseup", function(e) {
- if(e.event.button == 1)
+ var button = 1;
+
+ if(Browser.Engine.trident)
+ button = 4;
+
+ if(e.event.button == button)
close(e);
}.bind(this));
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");