added setContainerSizeCentered method