Adjust browser window to course dimensions

amak
Community Member Posts: 23
Comments
-
Is the course opened in a pop-up from your LMS? If yes, there should be a setting in the LMS to select the popup size.
However, you can also do in Lectora: On Show > Execute JavaScript > "window.resizeTo(200,200);". It will load the course and then resize it to 200px by 200px. -
Example: http://jsfiddle.net/mbph7qmk/1/
-
I had to use "top" for it to work for me, but honestly I cannot remember why... so, this is another option if the other does not work. I also size the window slightly bigger than the course itself to accommodate for the browser title bar and border. My actual course size is: 1009 x 662
javascript:top.window.resizeTo(1025, 730) -
This doesn't seem to work for me. Maybe I'm doing it wrong? I added an OnShowRunJS action to the Title level of:
window.resizeTo(200,200);
I also tried:
top.window.resizeTo(200,200);
Neither did anything. The windows still open up at full screen. Any advice? Did I put the JS action at the wrong level? I also tried the AU level with the same results. -
-
When you are publishing, make sure the checkbox for "launch course in separate window from the LMS." is checked. I set up a group at the topmost course level with two actions: 1) The action to resize the window, 2) An action to set a variable that this was done (var_WinResized > Set Equal To > yes). Then, also at the topmost course level, I have a runGroup to run that action group, IF, the window has not yet been resized (if var_WinResized > Not Equal To > yes). I do this so the resizing happens only once and does not attempt to resize each page.
I publish to SCORM 1.2 and use Cornerstone. -
-
Categories
- 4.8K All Categories
- 6 New Feature Releases
- The Training Arcade®
- Arcades™
- 125 ✫ Announcements
- 9 ✪ Contests
- 34.1K eLearning Brothers® Products
- 33.6K Lectora®
- 31.6K Lectora Discussions
- 1.9K Lectora Feature Requests
- 71 Lectora User Groups
- 17 Asset Library
- 10 AssetLibrary Discussions
- 7 AssetLibrary Feature Requests
- 305 CenarioVR®
- 179 CenarioVR Discussions
- 126 CenarioVR Feature Requests
- 40 Rockstar Learning Platform®
- 28 Rockstar Learning Platform Discussions
- 12 Rockstar Learning Platform Feature Requests
- 4 Off-the-Shelf Course Library
- 3 Off-the-Shelf Course Library Discussions
- 1 Off-the-Shelf Course Library Feature Requests
- 114 CourseMill®
- 107 CourseMill Discussions
- 44 ReviewLink®
- 32 ReviewLink Discussions
- 12 ReviewLink Suggestions
- 2 The Training Arcade®
- 1 The Training Arcade Discussions
- 1 The Training Arcade Feature Requests
- 10 Additional Learning Products
- 2 Adobe®
- 4 Articulate®
- 2 Camtasia®
- Docebo®
- 1 iSpring®
- 1 Microsoft® PowerPoint®
- 932 All Things eLearning
- 5 Course Development Showcase
- 1 eLearning Brothers® Downloads
- 1 Compliance Training
- 11 eLearning Development
- eLearning Game Design
- 7 Instructional Design
- 545 Learning Management System (LMS) Integration
- 3 Mobile Learning
- 22 Visual Design
- 331 Web Accessibility
- 1.2K ♪ The Green Room
- 8 ♡ Community Feedback
- 7 Community Tips