1
0
mirror of https://github.com/moparisthebest/mail synced 2024-12-23 07:48:48 -05:00

trigger read content scaling on window resize

This commit is contained in:
Mario Volke 2014-09-23 12:06:18 +02:00
parent 3ec9597371
commit 320686f590
2 changed files with 5 additions and 1 deletions

View File

@ -30,6 +30,8 @@
scaleToFit();
};
window.addEventListener('resize', scaleToFit);
/**
* Parse email body and generate conversation nodes
* @param {Object} email The email object

View File

@ -207,7 +207,7 @@ define(function(require) {
};
});
ngModule.directive('frameLoad', function($timeout) {
ngModule.directive('frameLoad', function($timeout, $window) {
return function(scope, elm) {
var iframe = elm[0];
@ -220,6 +220,8 @@ define(function(require) {
}
});
$window.addEventListener('resize', scaleToFit);
iframe.onload = function() {
// set listeners
scope.$watch('state.mailList.selected.body', displayText);