Skip to main content
Inspiring
August 30, 2016
Question

max size of a scalable project

  • August 30, 2016
  • 2 replies
  • 980 views

Before Captivate 8, I could add a code to the header of the index to create a "max-width" so that the project wouldn't scale UP past my design size.

But now all of the size stuff is done with in-line css and I can't stop the project from scaling to whatever size the window is- HUGE if you are on a design monitor.

I want my projects to scale down so it can be used on a tablet or small laptop if needed, but not be too big when used on someones large monitor.

Is this really asking too much? I don't have time to do a responsive project- I don't want a new layout to match different screens. I just want everything to down-scale with constrained proportions.

Any thoughts on how to do this? If not, Adobe, PLEASE, PLEASE, PLEASE make this an option.

This topic has been closed for replies.

2 replies

TLCMediaDesign
Inspiring
August 31, 2016

What is your output Jessica, swf, html or both? The "fix" is quite different for each.

For html5, publish a scaling project, insert the following JavaScript in the index.html file between the code that is in bold:

lJSLoaded = true;

      

       var w = Math.max(document.documentElement.clientWidth, window.innerWidth || 0)

       var h = Math.max(document.documentElement.clientHeight, window.innerHeight || 0)

      

       if ( cp.model.data.project.w < w || cp.model.data.project.h < h )

       {

        cp.model.data.project.shc = false;

       }

      

constructDIVs();

JGarrouAuthor
Inspiring
September 6, 2016

TLCMediaDesign​, Thanks! I tried it quickly and it seemed to break the project. I like what you are thinking, so I will try working with this more...

JGarrouAuthor
Inspiring
September 6, 2016

Oh, and this line is already between that code: if(window.location.protocol.substr(0,4) != "file" || !imageJSONFiles.length)

Should I keep that or replace that do you think?

RodWard
Community Expert
Community Expert
August 31, 2016

Your idea has merit but logging enhancement requests via the form on their website is a safer bet than just appealing for it here on the user forum.