Resizing awkwardness, please help

Resizing awkwardness, please help

Hi.

I'm working on an opensource component, logAndHandler(), which is used to debug PHP error messages in the browser.
It uses a lot of jquery animations.

see http://mediabeez.ws/lah/

I'm kinda stuck on why my component doesn't perform it's resizing functions properly when the user clicks for the first time on links that should manipulate both size of the window and scroll bar. It does it semi-correctly when the user clicks again on the same link.

Any help is much appreciated.