This behavior does seem strange.

You might prefer the "automatic" editbox size setting which avoids the need for a confirmation message.