Added preferred max length of placeholder and intrinsice size to work nicely with autolayout.