Fixed bugs that would cause flexible text field to be sized and styled incorrectly