Skip to content
Browse files

dynamically set facebox width on reveal

  • Loading branch information...
1 parent 785535c commit 16c6542a0475179215a1667cd505960f1913dc3d @defunkt committed
Showing with 2 additions and 1 deletion.
  1. +2 −1 facebox.js
View
3 facebox.js
@@ -122,7 +122,7 @@
$('#facebox').css({
top: getPageScroll()[1] + (getPageHeight() / 10),
- left: 0
+ left: 385.5
}).show()
$('#facebox').css('left', $(window).width() / 2 - ($('#facebox table').width() / 2))
@@ -140,6 +140,7 @@
$('#facebox .content').append(data)
$('#facebox .loading').remove()
$('#facebox .body').children().fadeIn('normal')
+ $('#facebox').css('left', $(window).width() / 2 - ($('#facebox table').width() / 2))
$(document).trigger('reveal.facebox').trigger('afterReveal.facebox')
},

0 comments on commit 16c6542

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