Added option to expand on focus.

Fixes #1253719