Re: [jQuery] slideToggle height/visible problems

2006-09-04 Thread Kevin Old
Thanks John!  That works perfect!

BTW, I love jQuery!!!  Starting to use it in all my web apps instead
of Prototype!

Thanks for such a great library!
Kevin

On 9/4/06, John Resig <[EMAIL PROTECTED]> wrote:
> > I'm using version 1.0.1 that was downloaded a few days ago.  I'll
> > download the latest and see if it doesn't fix it.
> >
> > BTW, how do I specify the 'height: auto' to slideToggle()?
>
> It's an automatic thing, determined by jQuery. However, if you want to
> force it you can do:
>
> $(...).slideToggle("slow",function(){
> $(this).height("auto");
> });
>
> --John
>
> ___
> jQuery mailing list
> discuss@jquery.com
> http://jquery.com/discuss/
>


-- 
Kevin Old
[EMAIL PROTECTED]

___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] slideToggle height/visible problems

2006-09-04 Thread Kevin Old
John,

I pulled down the latest and it still sets the height at 171px.

Any ideas how to fix this?

Thanks,
Kevin

On 9/4/06, Kevin Old <[EMAIL PROTECTED]> wrote:
> Hi John,
>
> I'm using version 1.0.1 that was downloaded a few days ago.  I'll
> download the latest and see if it doesn't fix it.
>
> BTW, how do I specify the 'height: auto' to slideToggle()?
>
> Thanks,
> Kevin
>
> On 9/4/06, John Resig <[EMAIL PROTECTED]> wrote:
> > Kevin -
> >
> > What version of jQuery are you using? I'm fairly certain that the
> > 'height: auto' issue is resolved in 1.0.1:
> > http://jquery.com/src/jquery-1.0.1.js
> >
> > --John
> >
> > On 9/4/06, Kevin Old <[EMAIL PROTECTED]> wrote:
> > > Hello everyone,
> > >
> > > I have div that has 4 large paragraphs in it.  I'm like to use
> > > slideToggle() to show/hide the div, but have run into a few problems.
> > >
> > > After executing slideToggle() on my div, the following styles are set:
> > > 
> > >
> > > Compare this to the styles set if I use show() instead:
> > > 
> > >
> > > I'd like to be able to adjust the height and overflow, but would like
> > > for it to figure out the height to include all of the content (maybe
> > > if I could pass "height: auto").
> > >
> > > I've looked through the docs, but can't figure it out.
> > >
> > > Any ideas?
> > >
> > > Thanks,
> > > Kevin
> > > --
> > > Kevin Old
> > > [EMAIL PROTECTED]
> > >
> > > ___
> > > jQuery mailing list
> > > discuss@jquery.com
> > > http://jquery.com/discuss/
> > >
> >
> >
> > --
> > John Resig
> > http://ejohn.org/
> > [EMAIL PROTECTED]
> >
> > ___
> > jQuery mailing list
> > discuss@jquery.com
> > http://jquery.com/discuss/
> >
>
>
> --
> Kevin Old
> [EMAIL PROTECTED]
>


-- 
Kevin Old
[EMAIL PROTECTED]

___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] slideToggle height/visible problems

2006-09-04 Thread John Resig
> I'm using version 1.0.1 that was downloaded a few days ago.  I'll
> download the latest and see if it doesn't fix it.
>
> BTW, how do I specify the 'height: auto' to slideToggle()?

It's an automatic thing, determined by jQuery. However, if you want to
force it you can do:

$(...).slideToggle("slow",function(){
$(this).height("auto");
});

--John

___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] slideToggle height/visible problems

2006-09-04 Thread Kevin Old
Hi John,

I'm using version 1.0.1 that was downloaded a few days ago.  I'll
download the latest and see if it doesn't fix it.

BTW, how do I specify the 'height: auto' to slideToggle()?

Thanks,
Kevin

On 9/4/06, John Resig <[EMAIL PROTECTED]> wrote:
> Kevin -
>
> What version of jQuery are you using? I'm fairly certain that the
> 'height: auto' issue is resolved in 1.0.1:
> http://jquery.com/src/jquery-1.0.1.js
>
> --John
>
> On 9/4/06, Kevin Old <[EMAIL PROTECTED]> wrote:
> > Hello everyone,
> >
> > I have div that has 4 large paragraphs in it.  I'm like to use
> > slideToggle() to show/hide the div, but have run into a few problems.
> >
> > After executing slideToggle() on my div, the following styles are set:
> > 
> >
> > Compare this to the styles set if I use show() instead:
> > 
> >
> > I'd like to be able to adjust the height and overflow, but would like
> > for it to figure out the height to include all of the content (maybe
> > if I could pass "height: auto").
> >
> > I've looked through the docs, but can't figure it out.
> >
> > Any ideas?
> >
> > Thanks,
> > Kevin
> > --
> > Kevin Old
> > [EMAIL PROTECTED]
> >
> > ___
> > jQuery mailing list
> > discuss@jquery.com
> > http://jquery.com/discuss/
> >
>
>
> --
> John Resig
> http://ejohn.org/
> [EMAIL PROTECTED]
>
> ___
> jQuery mailing list
> discuss@jquery.com
> http://jquery.com/discuss/
>


-- 
Kevin Old
[EMAIL PROTECTED]

___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] slideToggle height/visible problems

2006-09-04 Thread John Resig
Kevin -

What version of jQuery are you using? I'm fairly certain that the
'height: auto' issue is resolved in 1.0.1:
http://jquery.com/src/jquery-1.0.1.js

--John

On 9/4/06, Kevin Old <[EMAIL PROTECTED]> wrote:
> Hello everyone,
>
> I have div that has 4 large paragraphs in it.  I'm like to use
> slideToggle() to show/hide the div, but have run into a few problems.
>
> After executing slideToggle() on my div, the following styles are set:
> 
>
> Compare this to the styles set if I use show() instead:
> 
>
> I'd like to be able to adjust the height and overflow, but would like
> for it to figure out the height to include all of the content (maybe
> if I could pass "height: auto").
>
> I've looked through the docs, but can't figure it out.
>
> Any ideas?
>
> Thanks,
> Kevin
> --
> Kevin Old
> [EMAIL PROTECTED]
>
> ___
> jQuery mailing list
> discuss@jquery.com
> http://jquery.com/discuss/
>


-- 
John Resig
http://ejohn.org/
[EMAIL PROTECTED]

___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/