Set autowidth and autoheight for attachments field (fixed NB#90014)
authorJose Dapena Paz <jdapena@igalia.com>
Tue, 16 Dec 2008 13:59:14 +0000 (13:59 +0000)
committerJose Dapena Paz <jdapena@igalia.com>
Tue, 16 Dec 2008 13:59:14 +0000 (13:59 +0000)
pmo-trunk-r6880

src/hildon2/modest-msg-edit-window.c

index 08d0d72..44365d0 100644 (file)
@@ -814,9 +814,11 @@ init_window (ModestMsgEditWindow *obj)
                 HILDON_SIZE_AUTO_HEIGHT | HILDON_SIZE_AUTO_WIDTH);
        subject_caption = modest_maemo_utils_create_captioned (title_size_group, value_size_group,
                                                               _("mail_va_subject"), subject_box);
-       priv->attachments_caption = modest_maemo_utils_create_captioned (title_size_group, value_size_group,
-                                                                        _("mail_va_attachment"), 
-                                                                        priv->attachments_view);
+       priv->attachments_caption = modest_maemo_utils_create_captioned_with_size_type (title_size_group, value_size_group,
+                                                                                       _("mail_va_attachment"), 
+                                                                                       priv->attachments_view,
+                                                                                       HILDON_SIZE_AUTO_WIDTH |
+                                                                                       HILDON_SIZE_AUTO_HEIGHT);
        /* modest_recpt_editor_set_field_size_group (MODEST_RECPT_EDITOR (priv->to_field), value_size_group); */
        /* modest_recpt_editor_set_field_size_group (MODEST_RECPT_EDITOR (priv->cc_field), value_size_group); */
        /* modest_recpt_editor_set_field_size_group (MODEST_RECPT_EDITOR (priv->bcc_field), value_size_group); */