Matches the container width. If maxWidth is provided, it caps the resulting menu width, including when the container is wider.