Update scrollbar size when drawing events