Added support for an optional method in the menu delegate to set the menu width.