Show the title and the items in the user's language (TYP-1287). Only for a menu of the editor's own choices — alignments, fit modes, blend modes. Never for one that lists a document's fonts, styles or swatches: those are names, not words to translate.
⚠️ This must not be able to throw on its own argument.
Titles come from a document — a font family, a style name, a swatch name — and any of them
can be absent in a document that is merely unusual rather than broken. It used to call
this.title.split() on whatever arrived, so one run whose font resolved to nothing threw
here and the toolbar never finished building: clicking into a text frame took the editor
down (TYP-739). A menu with nothing to show should show nothing.
The parameter's type is widened to say what actually reaches it. The element lookup below is deliberately NOT guarded: a missing title element means this menu was built with the wrong id, which is a wiring mistake and should stay loud.
A popupmenu whose title shows the selected option's SVG icon and whose dropdown lists the options as clickable SVG rows. Used for text justification and vertical alignment. Reuses the base #menulayer dropdown plumbing (selectmenu/hidemenu).