Bug Fix: Login form now maintains the right layout on reize

This commit is contained in:
Matthew Harrison-Jones 2013-08-21 12:45:33 +01:00
parent 80e7ffd9b0
commit d6e0835ae2
2 changed files with 8 additions and 3 deletions

View File

@ -19,8 +19,7 @@
}
main {
top: 15px;
@include breakpoint($mobile) { top: 0; }
top: 0;
}
}//.ghost-login

View File

@ -24,7 +24,13 @@
},
centerOnResize: _.debounce(function (e) {
$(".js-login-container").center();
var container = $(".js-login-container");
container.css({
'position': 'relative'
}).animate({
'top': Math.round($(window).height() / 2) - container.outerHeight() / 2 + 'px'
});
$(window).trigger("centered");
}, 100),
remove: function () {