Added function to get text width and height from the text component
Fixed typo in the object AfterInitialzed to AfterInitialized