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
>
>
--
Martijn Wargers
Help Mozilla!
http://weblogs.mozillazine.org/qa/
http://www.mozilla.org/contribute/
http://wiki.mozilla.org/Mozilla_QA_Community
_______________________________________________
dev-tech-layout mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-tech-layout