Set Browser Window Size in Lectora 11

Hello,


In Lectora 10 I would External HTML Code to set the browser window size. However once I started using Lectora 11 in Internet Explorer 10 it keeps the proper width, but automatically sets the height to the maximum screen height, which creates a lot of white space in the browser. Below is the code I use. Is there a new code I should be using in Lectora 11?


Thanks,

Eric


Code

[/CODE][CODE][/CODE]

Discussion (10)

From MDN:


1. You can't resize a window or tab that wasn’t created by window.open.

2. You can't resize a window or tab when it’s in a window with more than one tab.


The exact details of these rules varies from browser to browser, but they all have this basic functionality built in.


Also, in your code example, you're missing semicolons on a few of your variable declarations.

@Verge8D 51119 wrote:

From MDN:


1. You can't resize a window or tab that wasn’t created by window.open.

2. You can't resize a window or tab when it’s in a window with more than one tab.


The exact details of these rules varies from browser to browser, but they all have this basic functionality built in.


Also, in your code example, you're missing semicolons on a few of your variable declarations.



Hi Verge 8D;


The code has been used in previous eLearnings and worked fine in Lectora 10 for Internet Explorer 10. Basically when a course is in launched from the LMS, this code determines the size of the browser window when the course launches initially. However since I migrated to Lectora 11 this code does not work anymore. It does the correct width, but the height always defaults to the maximum height of the current screen resolution. On a high resolution monitor this creates a lot of white space on the bottom. Unfortunately, our LMS does not allow us to set a window size which is why we do this. Does anyone know of any code that work for Internet Explorer 10 using Lectora 11?


Thanks,

Eric

@Verge8D 51119 wrote:

Also, in your code example, you're missing semicolons on a few of your variable declarations.
They are not strictly required since the engine adds them automatically.


http://davidwalsh.name/javascript-semicolons

Eric or Anyone else,

We are having the exact same issue with our courses now since upgrading to v11. Was this ever resolved for you and if so can you provide what ultimately worked. Our browser re-sizing html code looks basically the same as what you are using and it's always worked for us until now. Any updates or assistance you could provide would be very helpful!


Thanks!

Larry

Try using the same code but make sure Compatibility View is turned off in IE ... of course, this may bring forth other issues ;)

George,

Thank you for the suggestion. However, I tried viewing the course with Compatiblity View in IE both On and Off with no change to the page format size.


Any other suggestions anyone?

@kamp 56053 wrote:

Eric or Anyone else,

We are having the exact same issue with our courses now since upgrading to v11. Was this ever resolved for you and if so can you provide what ultimately worked. Our browser re-sizing html code looks basically the same as what you are using and it's always worked for us until now. Any updates or assistance you could provide would be very helpful!


Thanks!

Larry



Hi Kamp,


No I have not been able to get it to work. I'm still able to get it to work in Lectora 10 and in Captivate, so it is an issue isolated to Lectora 11 for some reason.

I've had the same problem with more than one course. What actually removed the extra screen space for me was copying the AU (or all of them) from the course into a brand new file before re-publishing. Perhaps, that will make a difference for you too (if you haven't already done so).


Fortunately for me, I'm able to change the screen size via LMS (SumTotal/GeoLearning) properties.


Let us know if it works for you and/or if you've resolved some other way.

@elearnchick 59563 wrote:

I've had the same problem with more than one course. What actually removed the extra screen space for me was copying the AU (or all of them) from the course into a brand new file before re-publishing. Perhaps, that will make a difference for you too (if you haven't already done so).


I just tried this, to no avail. Has anyone else had any success resolving this problem?

Try:


window.top.resizeTo(width, height);

Discussions have been disabled for this post