iv plugin: avoid the misalignement of elements when resizing