#38 fix resizing bug when scrollbar is shown