Fix #1419 Fix resize issue on mobile view