dont resize if no display / throws inifinite loop