+ /* fixes an IE bug */
+ if(prevbottom < prevsize.y)
+ prevbottom = prevsize.y;
+
+ return prev.y + prevsize.y == prevbottom;
+ },
+ getScrollParent: function() {
+ var scrollparent = this.lines;
+
+ if($defined(this.scroller))
+ scrollparent = this.scroller;
+ return scrollparent;
+ },
+ scrollToBottom: function() {
+ if(this.type == qwebirc.ui.WINDOW_CUSTOM || this.type == qwebirc.ui.WINDOW_CONNECT)
+ return;
+
+ var parent = this.lines;
+ var scrollparent = this.getScrollParent();
+
+ scrollparent.scrollTo(parent.getScroll().x, parent.getScrollSize().y);
+ },
+ scrollAdd: function(element) {
+ var parent = this.lines;
+