scale proportional based on width -> overlapping height will be centered and cut off …
scaleProportionalBasedOnWidth.hype.zip (27.3 KB)
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:
scaleProportionalBasedOnWidth-flexible-only.hype.zip (47.1 KB)
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