fix indention

This commit is contained in:
Mads Rasmussen
2018-08-10 14:05:15 +02:00
parent c7a5786521
commit 23e81a67fa

View File

@@ -16,23 +16,23 @@
**/
angular.module("umbraco.directives")
.directive('autoScale', function ($window) {
return function (scope, el, attrs) {
var totalOffset = 0;
var offsety = parseInt(attrs.autoScale, 10);
var window = angular.element($window);
if (offsety !== undefined){
totalOffset += offsety;
}
.directive('autoScale', function ($window) {
return function (scope, el, attrs) {
setTimeout(function () {
el.height(window.height() - (el.offset().top + totalOffset));
}, 500);
var totalOffset = 0;
var offsety = parseInt(attrs.autoScale, 10);
var window = angular.element($window);
if (offsety !== undefined) {
totalOffset += offsety;
}
window.bind("resize", function () {
el.height(window.height() - (el.offset().top + totalOffset));
});
setTimeout(function () {
el.height(window.height() - (el.offset().top + totalOffset));
}, 500);
};
});
window.bind("resize", function () {
el.height(window.height() - (el.offset().top + totalOffset));
});
};
});