Changed a private method to protected to allow classes to extend Container and do their own viewport magic.