Dimensions should depend on resize