More textfield fixes

- Make sure width & height return sane values.
- Show a border for textfields in html mode.