Twitter-timeline stream height incorrect when initially hidden


I am embedding the twitter timeline into my page and have it initially hidden.
I use JQuery to show the div containing the timeline when needed.

However the stream height is incorrect so the part of the scroll bar and the footer are not showing.

I do not see this problem if the timeline is not initially hidden.

Any ideas?