Position of Articulate Scorm object when loaded into Moodle

Apr 01, 2014

Hi Heroes! 

First post here, so I hope I'm in the right category etc.

When I load my scorm object into Moodle 2.6.2 I get this weird space top and bottom. See pic. (I'm only concerned about the extra space at the top)

I found several threads on this issue, but many of them mention earlier versions of Moodle, or offer fixes that reference files that are not in the current versions.

What I think is happening is that when the Scorm object is loaded, it calculates where it should sit in relation to the size of the browser window NOT the iframe its being loaded into. As the browser window is larger it then sits too far down in the page.

When I re-size the browser height to make it smaller, the space reduces to an acceptable level, but the bottom of the player is then cut off by the bottom of the browser.

What I'd really like to do is align the Player to the top of the iframe so that it gets rid of the extra space and then looks amazing. 

I've tried to put in the solutions mentioned in these articles, but none have worked for me:

https://moodle.org/mod/forum/discuss.php?d=117200

http://community.articulate.com/forums/t/17310.aspx

I'm pretty sure I've got the same issue as Erica G from this post from 2012, but I can't see a fix anywhere:

http://community.articulate.com/forums/p/15022/87866.aspx#87866

Any help would be greatly appreciated. Also, just a heads up - I'm no programmer - I can fumble my way through files and changing code if I have clear instructions, but saying things like "add a div tag to your style" means not much to me. 

Cheers,

Cal.

8 Replies
Dan Marsden

a lot of that is coming from your custom theme. It's hard to see from that screenshot if you are using the "new window" or "current window" setting in Moodle - if you are using "current window" try switching to the "new window option which will help a bit.

If you are already using the "new window" option the other thing you can do is in mod/scorm/player.php find this line:
$PAGE->set_pagelayout('popup');

and replace the word "popup" with "embedded" like this:

$PAGE->set_pagelayout('embedded'); 

We're planning to make that change in core at some point soon too.

Dan Marsden

you would need to find someone with CSS experience to modify the theme.

One thing that saves a little bit of space is removing this line from mod/scorm/player.php:

echo $OUTPUT->heading(format_string($scorm->name));

if you find that line and just delete it (take a copy of the file first just in case you do something bad and can replace it)

in Moodle 2.7 (not released yet) there is a setting that allows you to enable/disable that particular line.

Joseph FORET

Hello Cal an Dan,

Have you found a solution because I have the same problem. Watch this thread for the complete description : http://community.articulate.com/forums/t/56438.aspx

I don't think it can be solved by a CSS modification as the value controling the height of the SCORM player is dynamically generated. this value can be the source of the problem. I found it here : "<div style="height: 977px;" id="scorm_layout" class="yui3-g-r">"

This discussion is closed. You can start a new discussion or contact Articulate Support.