From e91edf4dbd140e3cc416354cd4ea273a990bf4fa Mon Sep 17 00:00:00 2001 From: Michael James Gratton Date: Tue, 25 Oct 2016 14:17:59 +1100 Subject: [PATCH] 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. --- src/client/conversation-viewer/conversation-list-box.vala | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/client/conversation-viewer/conversation-list-box.vala b/src/client/conversation-viewer/conversation-list-box.vala index dc90c683..fe997ad2 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(); }