prevent resize when preventing