[geary] Fix some initially collapsed messages not showing a body when expanded.



commit e91edf4dbd140e3cc416354cd4ea273a990bf4fa
Author: Michael James Gratton <mike vee net>
Date:   Tue Oct 25 14:17:59 2016 +1100

    Fix some initially collapsed messages not showing a body when expanded.
    
    * src/client/conversation-viewer/conversation-list-box.vala (EmailRow::expand):
      Check to see if the message's web views report a valid height and queue
      a resize if not, before expanding the row.

 .../conversation-viewer/conversation-list-box.vala |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)
---
diff --git a/src/client/conversation-viewer/conversation-list-box.vala 
b/src/client/conversation-viewer/conversation-list-box.vala
index dc90c68..fe997ad 100644
--- a/src/client/conversation-viewer/conversation-list-box.vala
+++ b/src/client/conversation-viewer/conversation-list-box.vala
@@ -144,6 +144,12 @@ public class ConversationListBox : Gtk.ListBox {
 
         public override void expand() {
             this.is_expanded = true;
+            this.view.message_view_iterator().foreach((view) => {
+                    if (!view.web_view.is_height_valid) {
+                        view.web_view.queue_resize();
+                    }
+                    return true;
+                });
             update_row_expansion();
         }
 


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