Removes the minimum width and height of the external API iframe in "film strip only" mode.

This commit is contained in:
hristoterezov 2015-08-17 13:46:26 -05:00
parent 5d32318d93
commit f60c1d9751
1 changed files with 6 additions and 4 deletions

View File

@ -29,9 +29,9 @@ var JitsiMeetExternalAPI = (function()
*/ */
function JitsiMeetExternalAPI(domain, room_name, width, height, parentNode, function JitsiMeetExternalAPI(domain, room_name, width, height, parentNode,
filmStripOnly) { filmStripOnly) {
if(!width || width < MIN_WIDTH) if((!width || width < MIN_WIDTH) && !filmStripOnly)
width = MIN_WIDTH; width = MIN_WIDTH;
if(!height || height < MIN_HEIGHT) if((!height || height < MIN_HEIGHT) && !filmStripOnly)
height = MIN_HEIGHT; height = MIN_HEIGHT;
this.parentNode = null; this.parentNode = null;
@ -45,8 +45,10 @@ var JitsiMeetExternalAPI = (function()
this.iframeHolder = this.iframeHolder =
this.parentNode.appendChild(document.createElement("div")); this.parentNode.appendChild(document.createElement("div"));
this.iframeHolder.id = "jitsiConference" + JitsiMeetExternalAPI.id; this.iframeHolder.id = "jitsiConference" + JitsiMeetExternalAPI.id;
this.iframeHolder.style.width = width + "px"; if(width)
this.iframeHolder.style.height = height + "px"; this.iframeHolder.style.width = width + "px";
if(height)
this.iframeHolder.style.height = height + "px";
this.frameName = "jitsiConferenceFrame" + JitsiMeetExternalAPI.id; this.frameName = "jitsiConferenceFrame" + JitsiMeetExternalAPI.id;
this.url = "//" + domain + "/"; this.url = "//" + domain + "/";
if(room_name) if(room_name)