To summarize what I’m seeing: this is like the Shrink to Fit option when the size ratio favors height, and Expand to Fill when the ratio favors width?
P.S. Good to see the getter/setter API being used for tasks like this!
I was thinking about this a little more, I think this will achieve the same effect without code:
- Create an enclosing group
- Set that enclosing group to use top, left, right pins and is width sizeable
- Set the inner group to use top, left, right pins, width and height sizeable, and then is set to shrink to fit and zoom contents
your example does not center the height … ¿ and it stops when docwidth is reached …
well, the original request was to use this setting within another fullwidth site.
always fill the full width and crop the height centered when needed …
after all: this won’t be a popular request