Switch ExtendedLegend to horizontal layout when wide
When the legend's parent is significantly more wide than tall, use LeftToRight flow instead of TopToBottom, otherwise a lot of empty space is wasted.
When the legend's parent is significantly more wide than tall, use LeftToRight flow instead of TopToBottom, otherwise a lot of empty space is wasted.