53 |
53 |
54 var newDiv = Popcorn.guid(this._div + "_widget_" + stem + "_"); |
54 var newDiv = Popcorn.guid(this._div + "_widget_" + stem + "_"); |
55 var spacerDiv = Popcorn.guid("LdtPlayer_spacer_"); |
55 var spacerDiv = Popcorn.guid("LdtPlayer_spacer_"); |
56 this._widgets.push(newDiv); |
56 this._widgets.push(newDiv); |
57 |
57 |
58 var divTempl = "<div id='{{id}}' style='width: 100%; position: relative;'></div"; |
58 var divTempl = "<div id='{{id}}' style='width: {{width}}px; position: relative;'></div"; |
59 var spacerTempl = "<div id='{{spacer_id}}' style='width: 100%; position: relative; height: {{spacer_div_height}};'></div"; |
59 var spacerTempl = "<div id='{{spacer_id}}' style='width: {{width}}px; position: relative; height: {{spacer_div_height}};'></div"; |
60 |
60 |
61 var divCode = Mustache.to_html(divTempl, {id: newDiv}); |
61 var divCode = Mustache.to_html(divTempl, {id: newDiv, width: this._width}); |
62 var spacerCode = Mustache.to_html(spacerTempl, {spacer_id: spacerDiv, spacer_div_height: IriSP.widgetsDefaults.LayoutManager.spacer_div_height }); |
62 var spacerCode = Mustache.to_html(spacerTempl, {spacer_id: spacerDiv, width: this._width, |
|
63 spacer_div_height: IriSP.widgetsDefaults.LayoutManager.spacer_div_height }); |
63 |
64 |
64 this.selector.append(divCode); |
65 this.selector.append(divCode); |
65 this.selector.append(spacerCode); |
66 this.selector.append(spacerCode); |
66 |
67 |
67 return [newDiv, spacerDiv]; |
68 return [newDiv, spacerDiv]; |