set min content size on resize and orientation change