Better Content Size Fitter
The Better Content Size Fitter extends the normal Content Size Fitter a lot.
Of course, you can have different settings for different screen configurations.
Besides that, there are some additional options:
If not set the object itself is used for fitting. Otherwise it uses the size of the given object and tries to have the same size (plus the modifications – see below)
Note: This doesn’t work with all kinds of objects yet. It is designed to be used with Text objects. This feature is experimental*.
- Has Max Width / Has Max Height
If you specify the Horizontal or Vertical fit to Min Size or Preferred Size, a checkbox will appear. If you check it, another section will appear where you can specify the maximum width / maximum height of the object. Even if it would be bigger than the specified size, it is trimmed to the given maximum instead.
- Has Min Width / Has Min Height
The same as Has Max Width / Has Max Height, but defines a minimum size rather than the maximum. Use it if you want to avoid that a certain element becomes too small.
- Size Offset
The Size Offset will be added to the calculated size. Pass positive values to make it bigger and negative values to make it smaller. It is kind of a padding.
- Is Animated experimental*
When the content of a (Better)ContentSizeFitter changes, it automatically applies the new size. If “Is Animated” is checked, it will not change the size immediately.
Instead, it changes the size over the specified time until it has reached the target size.
* Experimental means, that the given Feature works but not under every circumstances. So, try it. If it works you can use it also in production. If it doesn’t behave as expected, don’t use it for the given case.