Support resize on mobile platforms.