Added a 'maxLines' option so that an element can be clamped to a maximum number of lines