From 32cc6b10e83adbb0d0a477472a34b25dc007a5cb Mon Sep 17 00:00:00 2001 From: Tankred Hase Date: Wed, 5 Jun 2013 18:02:00 +0200 Subject: [PATCH] rendering mail content in 2nd sandboxed iframe works --- src/css/styles.css | 22 ++++++++++++++++++++++ src/js/view/read-view.js | 23 ++++++++++++----------- src/manifest.json | 4 ++-- src/tpl/read.html | 8 ++++---- 4 files changed, 40 insertions(+), 17 deletions(-) diff --git a/src/css/styles.css b/src/css/styles.css index 4977e38..61d611f 100644 --- a/src/css/styles.css +++ b/src/css/styles.css @@ -51,4 +51,26 @@ div#sandboxDiv iframe { right: 0; height: 100%; width: 100%; +} + +div#readViewContent ul { + position: absolute; + height: 100%; + width: 100%; +} + +li#bodyItem { + background-color: #FFFFFF; +} + +#mailContentFrame { + position: absolute; + top: 0; + bottom: 0; + left: 0; + right: 0; + height: 2000px; + width: 100%; + font-size: 8pt; + font-weight: normal; } \ No newline at end of file diff --git a/src/js/view/read-view.js b/src/js/view/read-view.js index eddd951..fe0ed48 100644 --- a/src/js/view/read-view.js +++ b/src/js/view/read-view.js @@ -48,19 +48,20 @@ } else if (tryHtml && emailBody.indexOf('/folders/<%- folder %>/reply/<%- id %>" data-role="button" data-icon="back" data-iconpos="right" class="ui-btn-right">Reply -
+
  • @@ -21,9 +21,9 @@

    <%- sentDate %>

  • -
  • -
    - +
  • +
    +