renamed from domresize to  resize