Question was in javascript category needed to be posted here

I have in the attached a Hype file which has whats called a tablet wrapper. It was done by someone who I was working with and I use this when I need projects to scale. My question is if you look in there ,hype file you will see it and it allows scaling for both height and width. I need to know how I can have this scale for JUST WIDTH or JUST HEIGHT not both.
ScaleJQuery 2.zip (1.5 MB)

anyone

R

Note that you do not have the flexible layout settings turned on for the document, so you’ll probably want to first enable these:

On what condition do you decide to scale for width or height? The setting you currently have is to preserve proportionality via ‘Shrink to Fit’ method, which is usually the desired behavior.