fix scrollBar adapt bug