automatic calculate scrollbar height