equal
deleted
inserted
replaced
21 */ |
21 */ |
22 IriSP.configurePopcorn = function (layoutManager, options) { |
22 IriSP.configurePopcorn = function (layoutManager, options) { |
23 var pop; |
23 var pop; |
24 var ret = layoutManager.createDiv(); |
24 var ret = layoutManager.createDiv(); |
25 var containerDiv = ret[0]; |
25 var containerDiv = ret[0]; |
|
26 var spacerDiv = ret[1]; |
|
27 |
|
28 /* insert one pixel of margin between the video and the first widget, using the |
|
29 spacer. |
|
30 */ |
|
31 IriSP.jQuery("#" + spacerDiv).css("height", "1px"); |
26 |
32 |
27 switch(options.type) { |
33 switch(options.type) { |
28 /* |
34 /* |
29 todo : dynamically create the div/video tag which |
35 todo : dynamically create the div/video tag which |
30 will contain the video. |
36 will contain the video. |
136 var index; |
142 var index; |
137 |
143 |
138 for (index = 0; index < guiOptions.widgets.length; index++) { |
144 for (index = 0; index < guiOptions.widgets.length; index++) { |
139 var widgetConfig = guiOptions.widgets[index]; |
145 var widgetConfig = guiOptions.widgets[index]; |
140 var widget = IriSP.instantiateWidget(popcornInstance, serialFactory, layoutManager, widgetConfig); |
146 var widget = IriSP.instantiateWidget(popcornInstance, serialFactory, layoutManager, widgetConfig); |
141 ret_widgets.push(widget); |
147 |
142 |
148 ret_widgets.push(widget); |
143 }; |
149 }; |
144 |
150 |
145 return ret_widgets; |
151 return ret_widgets; |
146 }; |
152 }; |
147 |
153 |