Update scroll bar when content size changes