fix inconsistent view resizing