Method setContainerDimension is not needed