Hm, you are right. I have never noticed that. But Visual Studio seems to have a more intelligent algorithm. For me the scrollbar almost never gets resized (VS 2010).
It seems that the maximum width of the document is cached. If the user scrolls and the currently visible width is greater than the cached maximum, the scrollbar is resized. If the user collapses a region, the scrollbar only is updated if the maximum is within the collapsed text range.
On the other hand, most edit operations are made within the visible area, so the scrollbar gets updated immediately. If the edit operation was outside of the visible area, the scrollbar gets updated when the changed are becomes visible. Documents that are not visible should never be updated until they become visible again.
I think it is a fair compromise between performance and usability. And if it affects performance, you can always make it an optional setting, which is disabled by default.
Best regards, Tobias Lingemann.