[evolution/wip-webkit2] VCardInline - Fix visual errors



commit ada67ad2c6b6e395c4d71585ec16a6ff23135214
Author: Tomas Popela <tpopela redhat com>
Date:   Tue Nov 19 16:37:37 2013 +0100

    VCardInline - Fix visual errors
    
    The background color class was not set, so it was acting weirdly. Also
    the left margin for left button was set to zero to align it with iframe
    below.

 modules/vcard-inline/e-mail-formatter-vcard.c |    7 +++++--
 1 files changed, 5 insertions(+), 2 deletions(-)
---
diff --git a/modules/vcard-inline/e-mail-formatter-vcard.c b/modules/vcard-inline/e-mail-formatter-vcard.c
index f8b98f7..2a3c2d6 100644
--- a/modules/vcard-inline/e-mail-formatter-vcard.c
+++ b/modules/vcard-inline/e-mail-formatter-vcard.c
@@ -146,6 +146,7 @@ mail_formatter_vcard_format (EMailFormatterExtension *extension,
                                "id=\"%s\" "
                                "class=\"org-gnome-vcard-display-mode-button\" "
                                "value=\"%d\" "
+                               "style=\"margin-left: 0px\""
                                "accesskey=\"%s\">%s</button>",
                        e_mail_part_get_id (part),
                        mode, access_key, html_label);
@@ -163,8 +164,10 @@ mail_formatter_vcard_format (EMailFormatterExtension *extension,
                                "class=\"org-gnome-vcard-save-button\" "
                                "value=\"%s\" "
                                "accesskey=\"%s\">%s</button><br>"
-                       "<iframe width=\"100%%\" height=\"auto\" frameborder=\"0\""
-                               "src=\"%s\" name=\"%s\"></iframe>"
+                       "<iframe width=\"100%%\" height=\"auto\" "
+                       " class=\"-e-mail-formatter-frame-color -e-web-view-background-color\" "
+                       " style=\"border: 1px solid;\""
+                       " src=\"%s\" name=\"%s\"></iframe>"
                        "</div>",
                        e_mail_part_get_id (part),
                        access_key, html_label, uri,


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]