浏览代码

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

j8
hristoterezov 9 年前
父节点
当前提交
f60c1d9751
共有 1 个文件被更改,包括 6 次插入4 次删除
  1. 6
    4
      external_api.js

+ 6
- 4
external_api.js 查看文件

@@ -29,9 +29,9 @@ var JitsiMeetExternalAPI = (function()
29 29
      */
30 30
     function JitsiMeetExternalAPI(domain, room_name, width, height, parentNode,
31 31
         filmStripOnly) {
32
-        if(!width || width < MIN_WIDTH)
32
+        if((!width || width < MIN_WIDTH) && !filmStripOnly)
33 33
             width = MIN_WIDTH;
34
-        if(!height || height < MIN_HEIGHT)
34
+        if((!height || height < MIN_HEIGHT) && !filmStripOnly)
35 35
             height = MIN_HEIGHT;
36 36
 
37 37
         this.parentNode = null;
@@ -45,8 +45,10 @@ var JitsiMeetExternalAPI = (function()
45 45
         this.iframeHolder =
46 46
             this.parentNode.appendChild(document.createElement("div"));
47 47
         this.iframeHolder.id = "jitsiConference" + JitsiMeetExternalAPI.id;
48
-        this.iframeHolder.style.width = width + "px";
49
-        this.iframeHolder.style.height = height + "px";
48
+        if(width)
49
+            this.iframeHolder.style.width = width + "px";
50
+        if(height)
51
+            this.iframeHolder.style.height = height + "px";
50 52
         this.frameName = "jitsiConferenceFrame" + JitsiMeetExternalAPI.id;
51 53
         this.url = "//" + domain + "/";
52 54
         if(room_name)

正在加载...
取消
保存