facebox invitations top on left - outerWidth fail
This commit is contained in:
parent
599d2e9aae
commit
81f48d6526
1 changed files with 2 additions and 2 deletions
4
vendor/assets/javascripts/facebox.js
vendored
4
vendor/assets/javascripts/facebox.js
vendored
|
|
@ -107,7 +107,7 @@
|
||||||
|
|
||||||
$('#facebox').show().css({
|
$('#facebox').show().css({
|
||||||
top: getPageScroll()[1] + (getPageHeight() / 10),
|
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) {
|
$(document).bind('keydown.facebox', function(e) {
|
||||||
|
|
@ -122,7 +122,7 @@
|
||||||
if (klass) $('#facebox .content').addClass(klass)
|
if (klass) $('#facebox .content').addClass(klass)
|
||||||
$('#facebox .content').empty().append(data)
|
$('#facebox .content').empty().append(data)
|
||||||
$('#facebox .popup').children().fadeIn('normal')
|
$('#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')
|
$(document).trigger('reveal.facebox').trigger('afterReveal.facebox')
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue