# How to increase the size of a CDF on screen

GROUPS:
 When I open a CDF document in a browser, for example. on the WA Pro or any interactive demonstration projects, I often need to increase the size of CDF to be able to actually see what is happening. Probably I'm doing something wrong, but in WA-Pro the height is often severely limited and on the other CDF is usually the width is limited. How to get bigger CDF and maybe even a full screen view ?
3 months ago
13 Replies
 It's been a whole month since Math Lind posted this question. I sure hope that someone has an answer for this. I would also like larger sizes and I would like a reliable way to match the size of manipulate box to the size specified in the browser. For an example of the problem, see any of the demos at https://faculty.unlv.edu/gbp/mma/VisualComplexAnalysis/CDF/.
5 days ago
 This is a good question and I am surprised no-one has come up with an answer so far. I would also like to increase the size of the output cell on my Manipulate exercises.
3 days ago
 Andre Kuzniarek 1 Vote Looks like there are two distinct questions here:1) How to make web-embedded CDF content zoom (change magnification) with the rest of the surrounding web pageThis is a feature now supported with the release of Mathematica 10, and coming soon with the new CDF Player. You can see this in action (using the Mathematica 10 plugin) at this Tumblr page: http://arksphere.tumblr.com/Use your standard web browser view menu zoom settings to see the top example change size with the rest of the page, whereas the older example below it will remain a static size. A CDF must be saved with version 10 to to enable this behavior, and we're in the process of making these updates to all CDFs in our product sites.2) How to match a CDF based on Manipulate to the size specified your HTMLInteractive diagrams created with Mathematica's Manipulate function are scalable (to the degree allowed by white space within the Manipulate box) and will adjust their size to the dimensions set by the embed code. For fixed dimensions, configure your content with ImageSize or ContentSize set to an explicit value or size specification. ImageSize->Medium will preserve Mathematica's default dimensions.You'll find this and other details at the "Formatting Your Content for Embedding" section of the CDF website's deployment page:http://www.wolfram.com/cdf/resources/deployment-details.htmlHope this information helps, and I will make a point to check in later to see if there are more questions/concerns.
2 days ago

@Andre, It doesn't seem to work for me. As you say, there is more than one problem. I tried the example page on tumblr and I noticed that it did resize, but it is not clear what the result would be if the page had a color background instead of a white background. In any event, mine will not resize.

https://faculty.unlv.edu/gbp/mma/VisualComplexAnalysis/CDF/Log.function.html

The notebook is attached. I notice that it is not stated above nor in the Wolfram page exactly where the ImageSize --> Medium should be placed. It is not accepted as an option to Manipulate. I have tried it as an option to GraphicsRow. Is there a general rule?

The second problem is that the code produce by the CDF generator does not produce an image on my page, so I used the shorter script. The source for the web page is of course available with a right click. It is quite short.

The CDF was generated in MMA 10, just installed a few hours ago. I used the Export-->Web Embeddable route by selecting the output cell to make the CDF. I'm using Firefox for a browser on OS X 10.9.3. I left the non-working CDF script in the source code for the page, but I inactivated it.

Perhaps you can see the problem.

Gary

 Attachments: Log.function.nb
2 days ago
 @Gary, here's my CDF example in its original background:http://members.wolfram.com/andre/cdf/webscalingI will take a look at your particular example a bit later today to see if I can be of further assistance, thanks.
1 day ago
 @Andre, thanks. That's how I would like mine to behave.
1 day ago
 Works fine with background color applied to the notebook and exported to CDF with version 10, as shown here:http://members.wolfram.com/andre/cdf/webscaling/LogFunction.v10.htmlI also included a version with the web embed size set smaller than exported size, so you can see the scaling effect from not setting explicit ImageSize for the content (plots). It's the same behavior in a notebook -- if you change the notebook window size you will see the Manipulate shrink rather than be cropped. I'm not a big fan of this behavior on the web, since most developers want the size they see in the exported result and may not find this automatic shrinkage useful.Anyway, hope this helps!
1 day ago
 @Andre, It does help. I used Format to change the background color of the cell to light gray and Exported the notebook as an embeddable CDF. In the html file I used the sizes provided by the Export dialog for the bounding box. I now get a gray panel that includes the CDF cell, extends the full width of the html bounding box, and resizes properly. But I see a white panel below the gray panel. Changing the height and/or width of the html bounding box changes the size of the image, but leaves the white panel. I see the same result in Firefox and Chrome.https://faculty.unlv.edu/gbp/mma/VisualComplexAnalysis/CDF/Log.function.html
1 day ago
 @Gary, without access to your source notebook, I can only guess that the export process is calculating the embed size based on some additional content that is not displayed. You can surely eliminate the white panel by reducing the object size (note the position of the CDF icon in the lower right corner is based on the object size settings).I do however recommend you copy and paste the embed code provided by the export wizard, rather than just using the "embed" tag.
1 day ago

@Andre, the notebook is attached. The only change from the previous attachment was to the background of the cell. The size is specified according to previous instructions as ImageSize --> Medium. I put it in the GraphicsRow options because Manipulate rejected it as an option. That is, it prints in red within Manipulate, but it seems to work the same way. The white panel remains. The only other object options that might affect size are the Graphics Plotrange options, but those are necessary to the plot.

I would like to copy and paste the embed code provided by the export wizard, but it doesn't function on the UNLV server. When I use it, I get no image at all, as you can see here:

https://faculty.unlv.edu/gbp/mma/VisualComplexAnalysis/CDF/Log.function.html

Do I need to ask them to install something to make this work?

 Attachments: Log.function.cdf