a piece of string is always two times the length from the midpoint to the endpoint!
I don't know why don't you go follow it check it out.
This is a Simple Dialog Demo.