Skip to content
Browse files

facebox invitations top on left - outerWidth fail

  • Loading branch information...
1 parent 599d2e9 commit 81f48d6526dacde225fdef3ec51dc6c756c0676d @movilla movilla committed Oct 8, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 vendor/assets/javascripts/facebox.js
View
4 vendor/assets/javascripts/facebox.js
@@ -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')
},

0 comments on commit 81f48d6

Please sign in to comment.
Something went wrong with that request. Please try again.