Adjust windows size and fixed a bug reated with text length.