public
Description: Facebook-style lightbox, built in jQuery
Homepage: http://famspam.com/facebox/
Clone URL: git://github.com/defunkt/facebox.git
Search Repo:
Click here to lend your support to: facebox and make a donation at www.pledgie.com !
dynamically set facebox width on reveal
defunkt (author)
Wed Apr 09 23:52:25 -0700 2008
commit  16c6542a0475179215a1667cd505960f1913dc3d
tree    add498352fb3ebb76cbc609cfe5d05071ffb901f
parent  785535c58657425174639774fa5ed9f90b468ae8
...
122
123
124
125
 
126
127
128
...
140
141
142
 
143
144
145
...
122
123
124
 
125
126
127
128
...
140
141
142
143
144
145
146
0
@@ -122,7 +122,7 @@
0
 
0
       $('#facebox').css({
0
         top:  getPageScroll()[1] + (getPageHeight() / 10),
0
- left: 0
0
+ left: 385.5
0
       }).show()
0
 
0
       $('#facebox').css('left', $(window).width() / 2 - ($('#facebox table').width() / 2))
0
@@ -140,6 +140,7 @@
0
       $('#facebox .content').append(data)
0
       $('#facebox .loading').remove()
0
       $('#facebox .body').children().fadeIn('normal')
0
+ $('#facebox').css('left', $(window).width() / 2 - ($('#facebox table').width() / 2))
0
       $(document).trigger('reveal.facebox').trigger('afterReveal.facebox')
0
     },
0
 

Comments

    No one has commented yet.