Everything works right when resizing now