[polari] chatView: Scroll to the first pending message, not the last acked



commit 6f05a713d7f6f69173df12ec2743e66801f375be
Author: Florian Müllner <fmuellner gnome org>
Date:   Wed Jul 24 02:39:20 2013 +0200

    chatView: Scroll to the first pending message, not the last acked

 src/chatView.js |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/src/chatView.js b/src/chatView.js
index c8d6331..e5b1c91 100644
--- a/src/chatView.js
+++ b/src/chatView.js
@@ -220,6 +220,8 @@ const ChatView = new Lang.Class({
     _updateScroll: function() {
         if (this._pending.length == 0)
             this.widget.vadjustment.value = this.widget.vadjustment.upper;
+        else
+            this._view.scroll_mark_onscreen(this._pending[0].mark);
     },
 
     _pendingMessageRemoved: function(channel, message) {


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]