Increasing the portion according to dynamic text

Discussion continued here - Writing the txt both vertically and horizentally centered