fix the bug that when content size larger and the bar not redraw