Forums

Vertical spacing around CDF file varies by brower and by operating system (1 post)

  1. SixWingedSeraph
    Member
    Posted 7 months ago #

    This is a followup to my message
    http://wordpress.org/support/topic/bottom-of-cdf-picture-cut-off-in-chrome?replies=2

    The problem is that when you use the code supplied by Mathematica to put a CDF file into a post, the bottom margin is shorter in Chrome than it is in IE8 or in Firefox (on an XP computer). Not only that but on my laptop (Vista) the bottom margin is shorter in Firefox as well! I can't imagine how this happens.

    This means I have to put in extra space to account for this behavior. By the way, there is also extra space at the top in any browser that I can't get rid of.

    You can see this by looking at my post

    http://www.abstractmath.org/Word%20Press/?p=2711

    The third diagram (below "Tangents can hug") shows this behavior. The bottom is cut off in Chrome and also in Firefox on my Vista computer.

    This is the Java code that posts the diagram:

    <script type="text/javascript" src="http://www.wolfram.com/cdf-player/plugin/v2.1/cdfplugin.js"></script><script type="text/javascript">// < ![CDATA[
    // < ![CDATA[
    var cdf = new cdfplugin(); cdf.embed('http://www.abstractmath.org/Mathematica/Hug.cdf', 600, 520); cdf.setDefaultContent('http://www.abstractmath.org/Mathematica/Hug.jpg');
    // ]]></script>

    I am cross posting this in the mathematica forum.

Reply

You must log in to post.

About this Topic