'use strict';

(function() {

  angular.module('ncsaas')
    .directive('loginbox', function($window) {
      return {
        restrict: 'A',
        link: function(scope, element, attrs) {
          var winHeight = $window.innerHeight;
          element.css('height', winHeight - 100 + 'px');
        }
      };
    })

    .directive('loginboxcontext', function($window) {
      return {
        restrict: 'A',
        link: function(scope, element, attrs) {
          var winHeight = $window.innerHeight;
          element.css('top', winHeight / 5 + 'px');
        }
      };
    });

})();

'use strict';

(function() {

  angular.module('ncsaas')
    .directive('loginboxcontext', function($window) {
      return {
        restrict: 'A',
        link: function(scope, element, attrs) {
          var elHeight = element[0].offsetHeight;
          element.css('margin-top', -elHeight / 2 + 'px');
        }
      };
    });

})();

Change directive loginboxcontext for vertical aligne login blovk. Remove directive loginbox.
Change directive loginboxcontext for vertical aligne login blovk. Remove directive loginbox.

– saas-239
