]> jfr.im git - irc/quakenet/qwebirc.git/commitdiff
Scrolling now works in IE.
authorChris Porter <redacted>
Sat, 18 Oct 2008 19:26:46 +0000 (20:26 +0100)
committerChris Porter <redacted>
Sat, 18 Oct 2008 19:26:46 +0000 (20:26 +0100)
js/ui/baseuiwindow.js

index 6cdeb8775ab8e7903bdbc647781588483f795cc0..112f6c5ef0a143e9c666192ce418571d43a2e558 100644 (file)
@@ -70,6 +70,10 @@ var UIWindow = new Class({
     var prevbottom = parent.getScrollSize().y;
     var prevsize = parent.getSize();
     
     var prevbottom = parent.getScrollSize().y;
     var prevsize = parent.getSize();
     
+    /* fixes an IE bug */
+    if(prevbottom < prevsize.y)
+      prevbottom = prevsize.y;
+      
     return prev.y + prevsize.y == prevbottom;
   },
   scrollToBottom: function() {
     return prev.y + prevsize.y == prevbottom;
   },
   scrollToBottom: function() {