fixes 13609 - Modal is shifting left just before the hiding animation