]> jfr.im git - irc/quakenet/qwebirc.git/commitdiff
Scroll position is now locked at the bottom if it's at the bottom when resizing begins.
authorChris Porter <redacted>
Sun, 9 Nov 2008 10:14:35 +0000 (10:14 +0000)
committerChris Porter <redacted>
Sun, 9 Nov 2008 10:14:35 +0000 (10:14 +0000)
TODO.txt
js/ui/qui.js

index e19de2b8f63371a0f1d2ae124430de9e395fa75c..918acacd28703dff728e7d2de984204fdac7d3ba 100644 (file)
--- a/TODO.txt
+++ b/TODO.txt
@@ -1,11 +1,9 @@
 O sound\r
 tab dragging\r
 O options pane (notices, sound, query behaviour, @+ in nick shown in chantext, etc)\r
-O authgate integration\r
-scroll pos not saved on resize (percentage)\r
+authgate integration\r
 undo closed tab\r
-memory leaks\r
 [ ] style flashing\r
-last position line\r
+last position line\r
 /msg $ goes to status, as does /notice $\r
 Authgate: fix up state inconsistency if backend is restarted (state is stored in user cookie and not refreshed except on login).
\ No newline at end of file
index 6fb15044d3fea1c282d99ba35470c355b97cf6fe..f9a834046b2e809f7b950f3c5c3f4f1c2f3fdb98 100644 (file)
@@ -7,7 +7,11 @@ qwebirc.ui.QUI = new Class({
   },
   postInitialize: function() {
     this.qjsui = new qwebirc.ui.QUI.JSUI("qwebirc-qui", this.parentElement);
-    
+    this.qjsui.addEvent("reflow", function() {
+      var w = this.getActiveWindow();
+      if($defined(w))
+        w.onResize();
+    }.bind(this));
     this.qjsui.top.addClass("tabbar");
     
     this.qjsui.bottom.addClass("input");
@@ -113,6 +117,7 @@ qwebirc.ui.QUI = new Class({
 });
 
 qwebirc.ui.QUI.JSUI = new Class({
+  Implements: [Events],
   initialize: function(class_, parent, sizer) {
     this.parent = parent;
     this.sizer = $defined(sizer)?sizer:parent;
@@ -198,6 +203,7 @@ qwebirc.ui.QUI.JSUI = new Class({
     right.setStyle("left", mwidth + "px");
     
     bottom.setStyle("top", (docsize.y - bottomsize.y) + "px");
+    this.fireEvent("reflow");
   },
   showChannel: function(state) {
     var display = "none";