Skip to content
This repository has been archived by the owner on Nov 3, 2021. It is now read-only.

Commit

Permalink
initial width sizing improvement for non-newsletter html
Browse files Browse the repository at this point in the history
  • Loading branch information
asutherland committed Sep 19, 2014
1 parent 243099a commit c2db5c0
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions apps/email/js/iframe_shims.js
Original file line number Diff line number Diff line change
Expand Up @@ -227,9 +227,12 @@ function createAndInsertIframeForContent(htmlStr, scrollContainer,
'overflow: hidden; ' +
'transform-origin: top left; ' +
'pointer-events: none;');
if (window.iframeShimsOpts.tapTransform) {
iframe.style.transform = 'scale(1)';
}
if (window.iframeShimsOpts.tapTransform) {
iframe.style.transform = 'scale(1)';
}
// try and get the page to size itself to our actually available space.
iframe.style.width = viewportWidth + 'px';


viewport.appendChild(iframe);
parentNode.insertBefore(viewport, beforeNode);
Expand Down

0 comments on commit c2db5c0

Please sign in to comment.