Skip to content

Commit

Permalink
Fix some resizing problems with HTML data in Chrome for smartmobile
Browse files Browse the repository at this point in the history
  • Loading branch information
slusarz committed Jun 11, 2014
1 parent e800c62 commit 76ed9ca
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions imp/js/smartmobile.js
Expand Up @@ -815,10 +815,6 @@ var ImpMobile = {
tmp = $('#imp-message-headers');
$.mobile.silentScroll(parseInt(tmp.position().top, 10) + parseInt(tmp.height(), 10) - $('#message > :jqmData(role=header)').height());

$.each($('#imp-message-body IFRAME.htmlMsgData'), function(k, v) {
IMP_JS.iframeResize($(v));
});

delete ImpMobile.message;
},

Expand Down Expand Up @@ -1722,7 +1718,9 @@ var IMP_JS = {
id = $('#' + id);
var d = id.get(0).contentWindow.document;

id.one('load', function() { IMP_JS.iframeResize(id); });
id.one('load', function() {
window.setTimeout(function() { IMP_JS.iframeResize(id); }, 0);
});

d.open();
d.write(data);
Expand Down

0 comments on commit 76ed9ca

Please sign in to comment.