facebox invitations top on left - outerWidth fail

This commit is contained in:
movilla 2012-10-08 23:08:50 +02:00
parent 599d2e9aae
commit 81f48d6526

View file

@ -107,7 +107,7 @@
$('#facebox').show().css({
top: getPageScroll()[1] + (getPageHeight() / 10),
left: $(window).width() / 2 - ($('#facebox .popup').outerWidth() / 2)
left: $(window).width() / 2 - ($('#facebox .popup').width() / 2)
})
$(document).bind('keydown.facebox', function(e) {
@ -122,7 +122,7 @@
if (klass) $('#facebox .content').addClass(klass)
$('#facebox .content').empty().append(data)
$('#facebox .popup').children().fadeIn('normal')
$('#facebox').css('left', $(window).width() / 2 - ($('#facebox .popup').outerWidth() / 2))
$('#facebox').css('left', $(window).width() / 2 - ($('#facebox .popup').width() / 2))
$(document).trigger('reveal.facebox').trigger('afterReveal.facebox')
},