core: add word-wrap property for very long menus

Refs #2316