set Class width hasContent in tpl