mirror of
https://github.com/moparisthebest/mail
synced 2024-08-13 16:43:47 -04:00
trigger read content scaling on window resize
This commit is contained in:
parent
3ec9597371
commit
320686f590
@ -30,6 +30,8 @@
|
|||||||
scaleToFit();
|
scaleToFit();
|
||||||
};
|
};
|
||||||
|
|
||||||
|
window.addEventListener('resize', scaleToFit);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Parse email body and generate conversation nodes
|
* Parse email body and generate conversation nodes
|
||||||
* @param {Object} email The email object
|
* @param {Object} email The email object
|
||||||
|
@ -207,7 +207,7 @@ define(function(require) {
|
|||||||
};
|
};
|
||||||
});
|
});
|
||||||
|
|
||||||
ngModule.directive('frameLoad', function($timeout) {
|
ngModule.directive('frameLoad', function($timeout, $window) {
|
||||||
return function(scope, elm) {
|
return function(scope, elm) {
|
||||||
var iframe = elm[0];
|
var iframe = elm[0];
|
||||||
|
|
||||||
@ -220,6 +220,8 @@ define(function(require) {
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
$window.addEventListener('resize', scaleToFit);
|
||||||
|
|
||||||
iframe.onload = function() {
|
iframe.onload = function() {
|
||||||
// set listeners
|
// set listeners
|
||||||
scope.$watch('state.mailList.selected.body', displayText);
|
scope.$watch('state.mailList.selected.body', displayText);
|
||||||
|
Loading…
Reference in New Issue
Block a user