Set autowidth and autoheight for attachments field (fixed NB#90014)
authorJose Dapena Paz <jdapena@igalia.com>
Tue, 16 Dec 2008 14:10:15 +0000 (14:10 +0000)
committerJose Dapena Paz <jdapena@igalia.com>
Tue, 16 Dec 2008 14:10:15 +0000 (14:10 +0000)
pmo-drop-split-view-r6882

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

index f2a67e5..1b54145 100644 (file)
@@ -765,9 +765,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); */