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.
This commit is contained in:
Michael James Gratton 2016-10-25 14:17:59 +11:00
parent 797bb44b7c
commit e91edf4dbd

View file

@ -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();
}