From f60c1d975120bc87619d63e8379ca2f433bd6617 Mon Sep 17 00:00:00 2001 From: hristoterezov Date: Mon, 17 Aug 2015 13:46:26 -0500 Subject: [PATCH] Removes the minimum width and height of the external API iframe in "film strip only" mode. --- external_api.js | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/external_api.js b/external_api.js index 5d23daeb7..bb8301b8d 100644 --- a/external_api.js +++ b/external_api.js @@ -29,9 +29,9 @@ var JitsiMeetExternalAPI = (function() */ function JitsiMeetExternalAPI(domain, room_name, width, height, parentNode, filmStripOnly) { - if(!width || width < MIN_WIDTH) + if((!width || width < MIN_WIDTH) && !filmStripOnly) width = MIN_WIDTH; - if(!height || height < MIN_HEIGHT) + if((!height || height < MIN_HEIGHT) && !filmStripOnly) height = MIN_HEIGHT; this.parentNode = null; @@ -45,8 +45,10 @@ var JitsiMeetExternalAPI = (function() this.iframeHolder = this.parentNode.appendChild(document.createElement("div")); this.iframeHolder.id = "jitsiConference" + JitsiMeetExternalAPI.id; - this.iframeHolder.style.width = width + "px"; - this.iframeHolder.style.height = height + "px"; + if(width) + this.iframeHolder.style.width = width + "px"; + if(height) + this.iframeHolder.style.height = height + "px"; this.frameName = "jitsiConferenceFrame" + JitsiMeetExternalAPI.id; this.url = "//" + domain + "/"; if(room_name)