Called by the buffer to notify its viewer that the buffer's size or scroll count has changed, so the scrollbars need to be adjusted to reflect the new size. The buffer generally needs to be updated after a resize, but the buffer decides whether the update should occur immediately.
If refresh? is not #f, then the buffer is requesting to be updated immediately.