mirror of https://github.com/moparisthebest/mail
27 lines
544 B
JavaScript
27 lines
544 B
JavaScript
|
define(function(require) {
|
||
|
'use strict';
|
||
|
|
||
|
var angular = require('angular');
|
||
|
|
||
|
//
|
||
|
// Controller
|
||
|
//
|
||
|
|
||
|
var ReadCtrl = function() {};
|
||
|
|
||
|
//
|
||
|
// Directives
|
||
|
//
|
||
|
|
||
|
var ngModule = angular.module('read', []);
|
||
|
ngModule.directive('frameLoad', function() {
|
||
|
return function(scope, elm) {
|
||
|
elm.bind('load', function() {
|
||
|
var frame = elm[0];
|
||
|
frame.height = frame.contentWindow.document.body.scrollHeight + 'px';
|
||
|
});
|
||
|
};
|
||
|
});
|
||
|
|
||
|
return ReadCtrl;
|
||
|
});
|