Page.replace_html = Safar scrollbar bug?

If I replace the content of a div with new content which is too tall for
the browser window, I get a scrollbar on the right. – So far so good.


If I then replace the content with content which DOES fit inside the
browser window, Safari doesn’t remove the scrollbar! If I then resize
the window ever so slightly, the scrollbar disappears. – It ONLY
happens in Safari.

Has anyone else encountered this problem? Is there a workaround? My RJS
code looks like this:

page.replace_html ‘content’, :partial => ‘list’


: )