@upandgo/react-scorm-container
Advanced tools
Comparing version 2.1.5 to 2.1.6
@@ -281,17 +281,7 @@ import { createRef, createElement, Component } from 'react'; | ||
else { | ||
return ( | ||
// Try to fix scrolling issues - ABEDOS 10/12/2021 | ||
// <div | ||
// style={{ | ||
// minWidth: this.props.width || "100vw", | ||
// minHeight: this.props.height || "100vh" | ||
// }} | ||
// > | ||
createElement("iframe", { ref: this.scormIFrame, src: this.props.bridgeUrl + "?id=" + this.state.moduleUrl, width: this.props.width || "100%", height: this.props.height || "100%", allowFullScreen: true, style: { | ||
return (createElement("iframe", { ref: this.scormIFrame, src: this.props.bridgeUrl + "?id=" + this.state.moduleUrl, width: this.props.width, height: this.props.height, allowFullScreen: true, style: { | ||
minWidth: this.props.width || "100vw", | ||
minHeight: this.props.height || "100vh", | ||
border: 0 | ||
}, onLoad: this.sendStateToBridge, scrolling: "no" }) | ||
// </div> | ||
); | ||
}, onLoad: this.sendStateToBridge })); | ||
} | ||
@@ -298,0 +288,0 @@ }; |
@@ -285,17 +285,7 @@ 'use strict'; | ||
else { | ||
return ( | ||
// Try to fix scrolling issues - ABEDOS 10/12/2021 | ||
// <div | ||
// style={{ | ||
// minWidth: this.props.width || "100vw", | ||
// minHeight: this.props.height || "100vh" | ||
// }} | ||
// > | ||
React.createElement("iframe", { ref: this.scormIFrame, src: this.props.bridgeUrl + "?id=" + this.state.moduleUrl, width: this.props.width || "100%", height: this.props.height || "100%", allowFullScreen: true, style: { | ||
return (React.createElement("iframe", { ref: this.scormIFrame, src: this.props.bridgeUrl + "?id=" + this.state.moduleUrl, width: this.props.width, height: this.props.height, allowFullScreen: true, style: { | ||
minWidth: this.props.width || "100vw", | ||
minHeight: this.props.height || "100vh", | ||
border: 0 | ||
}, onLoad: this.sendStateToBridge, scrolling: "no" }) | ||
// </div> | ||
); | ||
}, onLoad: this.sendStateToBridge })); | ||
} | ||
@@ -302,0 +292,0 @@ }; |
{ | ||
"name": "@upandgo/react-scorm-container", | ||
"version": "2.1.5", | ||
"version": "2.1.6", | ||
"description": "A React component acting as a LMS, listening to SCORM API events and reacting to SCORM API call.", | ||
@@ -5,0 +5,0 @@ "author": "Sangrene", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
93081
641