aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMilan Crha <mcrha@redhat.com>2012-08-07 21:56:21 +0800
committerMilan Crha <mcrha@redhat.com>2012-08-07 21:57:24 +0800
commitad9390872fd3f1516a9295b013fa56fe6f7a01c9 (patch)
treec065a4316b49bbbb1bebc5fcb7206ab679ddb8fd
parent3720a02cd82945b6d0da8169d0d4894083f5ea2c (diff)
downloadgsoc2013-evolution-ad9390872fd3f1516a9295b013fa56fe6f7a01c9.tar.gz
gsoc2013-evolution-ad9390872fd3f1516a9295b013fa56fe6f7a01c9.tar.zst
gsoc2013-evolution-ad9390872fd3f1516a9295b013fa56fe6f7a01c9.zip
Bug #678408 - Mail view is very small for some mails
-rw-r--r--widgets/misc/e-web-view.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/widgets/misc/e-web-view.c b/widgets/misc/e-web-view.c
index bb755b134c..e4d7be7e09 100644
--- a/widgets/misc/e-web-view.c
+++ b/widgets/misc/e-web-view.c
@@ -578,11 +578,20 @@ web_view_load_status_changed_cb (WebKitWebView *web_view,
gpointer user_data)
{
WebKitLoadStatus status;
+ GtkAllocation allocation, allocation_copy;
status = webkit_web_view_get_load_status (web_view);
if (status != WEBKIT_LOAD_FINISHED)
return;
+ /* Workaround webkit bug https://bugs.webkit.org/show_bug.cgi?id=89553 */
+ gtk_widget_get_allocation (GTK_WIDGET (web_view), &allocation_copy);
+ allocation = allocation_copy;
+ allocation.width -= 10;
+ allocation.height -= 10;
+ gtk_widget_size_allocate (GTK_WIDGET (web_view), &allocation);
+ gtk_widget_size_allocate (GTK_WIDGET (web_view), &allocation_copy);
+
web_view_update_document_highlights (E_WEB_VIEW (web_view));
}