mirror of
https://github.com/diaspora/diaspora.git
synced 2026-01-10 07:38:10 -05:00
facebox invitations top on left - outerWidth fail
This commit is contained in:
4
vendor/assets/javascripts/facebox.js
vendored
4
vendor/assets/javascripts/facebox.js
vendored
@@ -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')
|
||||
},
|
||||
|
||||
|
||||
Reference in New Issue
Block a user