Implemented automatic resize of text nodes in order to fit text