modal, resizing left logic bug fixed!!!