I found the issue, it seems blockUI is hardcoded to have a width of 250px
and a height of 100px. It seems to me that it should attempt to get the css
attributes of the content being passed in, to based it off of that. Note
that if you override the height and width in the call, you still have to
override the margins as well:
$.blockUI($('#alternateAddress')[0], {border: '0px', height: '459px', width:
'387px', margin: '-230px 0 0 -193px'});
was the line I had to use to get my dialog to center. I guess what I'm
going at is it would be nice to not have to override everything to get a
child div of #blockUI to center on the page.
Thanks,
Gavin
On 1/25/07, Gavin M. Roy <[EMAIL PROTECTED]> wrote:
I'm trying to use blockUI with a dialog that is 450px high. For some odd
reason, which I have yet to track down, instead of centering my dialog like
the examples, it is aligning it down to the bottom of the page.
Firebug reports that the blockUI div has a top offset of over 200px. Any
ideas of why it would not center such a div? It's a fairly complex form,
but I'll try to throw together an example if it will help.
Gavin
_______________________________________________
jQuery mailing list
[email protected]
http://jquery.com/discuss/