Added automatic width adjustment for TextField popup.