mirror of
https://github.com/moparisthebest/mail
synced 2024-12-23 15:58:49 -05:00
trigger read content scaling on window resize
This commit is contained in:
parent
3ec9597371
commit
320686f590
@ -30,6 +30,8 @@
|
||||
scaleToFit();
|
||||
};
|
||||
|
||||
window.addEventListener('resize', scaleToFit);
|
||||
|
||||
/**
|
||||
* Parse email body and generate conversation nodes
|
||||
* @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) {
|
||||
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);
|
||||
|
Loading…
Reference in New Issue
Block a user