aboutsummaryrefslogtreecommitdiffstats
path: root/mail/e-mail-attachment-bar.c
diff options
context:
space:
mode:
Diffstat (limited to 'mail/e-mail-attachment-bar.c')
-rw-r--r--mail/e-mail-attachment-bar.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/mail/e-mail-attachment-bar.c b/mail/e-mail-attachment-bar.c
index 0043dc383f..533623e066 100644
--- a/mail/e-mail-attachment-bar.c
+++ b/mail/e-mail-attachment-bar.c
@@ -299,8 +299,12 @@ static void
mail_attachment_bar_size_request (GtkWidget *widget,
GtkRequisition *requisition)
{
- /* XXX This works around GtkHTMLEmbedded brokenness.
- * Once we finally move to WebKit, remove this. */
+ /* XXX This works around GtkHTMLEmbedded not taking visibility
+ * into account when calculating its size (at least I think
+ * that's where it's broken). Without the workaround, we
+ * get a sizable gap between the headers and body when this
+ * widget is invisible. Once we finally move to WebKit,
+ * remove this. */
if (!GTK_WIDGET_VISIBLE (widget)) {
requisition->width = 0;
requisition->height = 0;