changed resize logic

Now new base is only written in caption until user releases keyboard
completely.