Text Fit Mode:

Maximum Width:
This example demonstrates how to use the legend maximum item width and text wrap mode properties in order to control the legend size.