Fix absolute position when resizing