Merge pull request #485 from matthojo/Login-Fix

Bug Fix: Login form now maintains the right layout on resize
This commit is contained in:
John O'Nolan 2013-08-21 05:01:27 -07:00
commit 3a427905e0
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 () {