From 23e81a67fa64e408888dc1b1ec4e195be8791d8a Mon Sep 17 00:00:00 2001 From: Mads Rasmussen Date: Fri, 10 Aug 2018 14:05:15 +0200 Subject: [PATCH] fix indention --- .../directives/util/autoscale.directive.js | 34 +++++++++---------- 1 file changed, 17 insertions(+), 17 deletions(-) diff --git a/src/Umbraco.Web.UI.Client/src/common/directives/util/autoscale.directive.js b/src/Umbraco.Web.UI.Client/src/common/directives/util/autoscale.directive.js index 8539bded69..15e45654a5 100644 --- a/src/Umbraco.Web.UI.Client/src/common/directives/util/autoscale.directive.js +++ b/src/Umbraco.Web.UI.Client/src/common/directives/util/autoscale.directive.js @@ -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)); + }); + + }; + });