Martijn,

Ahh - simply calling .offsetHeight - that I can manage!  I was assuming 
I had to actually do something complex with the return value ;)

Calling .offsetHeight did the trick - thanks for your help.

Regards,

Andy

Martijn wrote:
> 2007/5/1, Andy Cordwell <[EMAIL PROTECTED]>:
>> Martijn,
>> I'm not sure how to use .offsetHeight to 'fix' this issue?  Could you
>> give my limited knowledge of CSS/HTML a push in the right direction ;)
>
> This seems to make it work correctly on branches (at least for me):
>
> function toggle( collapsed_id, expanded_id  )
> {
>    collapsed_element = document.getElementById( collapsed_id );
>    expanded_element = document.getElementById( expanded_id  );
>    if ( expanded_element.style.display != "none" )
>    {
>        showElementPolicy( collapsed_id );
>        collapsed_element.offsetHeight;
>        hideElementPolicy( expanded_id );
>    }
>    else
>    {
>        showElementPolicy( expanded_id  );
>        expanded_element.offsetHeight;
>        hideElementPolicy( collapsed_id );
>    }
>
>    return true;
> }
>
> Regards,
> Martijn
>
>> Regards,
>>
>> Andy
>>
>>
>
>
_______________________________________________
dev-tech-layout mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-tech-layout

Reply via email to