mirror of
https://github.com/moparisthebest/mail
synced 2025-01-31 07:00:17 -05:00
Fix scroling in iframe in Chrome App
This commit is contained in:
parent
a7efdf1125
commit
747d9fce39
File diff suppressed because one or more lines are too long
@ -336,7 +336,10 @@ define(function(require) {
|
||||
scope.html = undefined;
|
||||
if (value) {
|
||||
$timeout(function() {
|
||||
scope.html = $sce.trustAsHtml(value);
|
||||
// wrap in html doc with scrollable html tag, since chrome apps does not scroll by default
|
||||
var prefix = '<!DOCTYPE html><html style="overflow-y: auto"><head></head><body>';
|
||||
var suffix = '</body></html>';
|
||||
scope.html = $sce.trustAsHtml(prefix + value + suffix);
|
||||
});
|
||||
}
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user