Don't cut off placeholder text in input field.

In #resize_input, if there is no input value, resize input to the width of the placeholder text.
Merge pull request #531 from nfiniteset/bugs/dont-cut-off-placeholder-text

Don't cut off placeholder text in the input field.