faces: Limit preferred size to maximum size as well as minimum
- faces: Use max of title width and legend width for full preferred width
Preferred is used when we can expand so we should make sure there's space for things like the legend to expand fully.
- faces: Limit preferred size to maximum size as well as minimum
preferredWidth/Height is used by applet code without clamping it to min/max, so we need to make sure we do that manually, otherwise some of the calculations in Applet can be incorrect.