I'm looking to find or create a component which would scale (not resize) its contents smaller if they were larger than this component's bounds, and center them if they're smaller. I could imagine extensions to support "expand to fit" as well, but that's not needed currently.
The "contents" can be a single child if that helps, or the full child list of a container. I've done a bit of custom component development, but would appreciate any suggestions/pointers for this scenario. Thanks in advance.

