Better window resizing on small screens