Is the Scale factor taken into account when saving HTML5 Standalone?

Bringing your stacks to the web

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
CuriousOne
Posts: 14
Joined: Sun Dec 30, 2018 11:16 pm

Is the Scale factor taken into account when saving HTML5 Standalone?

Post by CuriousOne » Mon Oct 19, 2020 4:18 pm

When saving as a standalone HTML5 application, the scale factor of my main stack doesn’t get taken into account.
For example my main stack is 1920 x 1080 but I would like to export it with a scale of .5 ( 960 x 540).
Am I missing a step somewhere?
Thank you

elanorb
Livecode Staff Member
Livecode Staff Member
Posts: 516
Joined: Fri Feb 24, 2006 9:45 am

Re: Is the Scale factor taken into account when saving HTML5 Standalone?

Post by elanorb » Wed Oct 21, 2020 9:43 am

Hi

It looks like the scaleFactor is not a persistent property of the stack so if you want the scaleFactor to apply to a standalone, including HTML5, you will need to set it in code in preOpenStack e.g.

Code: Select all

on preOpenStack
   set the scaleFactor of me to "0.75"
end preOpenStack
I'll report a documentation bug for the scaleFactor Dictionary entry to get it updated with this information.

I hope that helps.

Kind regards

Elanor
Elanor Buchanan
Software Developer
LiveCode

CuriousOne
Posts: 14
Joined: Sun Dec 30, 2018 11:16 pm

Re: Is the Scale factor taken into account when saving HTML5 Standalone?

Post by CuriousOne » Thu Oct 22, 2020 10:02 pm

Hi Elanor,
That work perfectly.
Thank you!

Post Reply

Return to “HTML5”