Fix resize bug of xml edit control