fix overflow scrollbar sometimes shows when resizing