src/js/layout.js
branchpopcorn-port
changeset 217 ec3e6d34462c
parent 159 de92bfdcbe4c
child 238 6008172a0592
child 287 5c7495102bd7
equal deleted inserted replaced
216:d1e891627286 217:ec3e6d34462c
    47     /* FIXME - don't forget to add the popcorn messages handlers there */
    47     /* FIXME - don't forget to add the popcorn messages handlers there */
    48 }
    48 }
    49 
    49 
    50 IriSP.LayoutManager.prototype.createDiv = function() {
    50 IriSP.LayoutManager.prototype.createDiv = function() {
    51     var newDiv = Popcorn.guid(this._div + "_widget_");
    51     var newDiv = Popcorn.guid(this._div + "_widget_");
    52     this._widgets.push(newDiv);    
    52     this._widgets.push(newDiv);
    53     this.selector.append("<div id='" + newDiv + "' style='width: 100%'></div");
    53 
       
    54     var templ = "<div id='{{id}}' style='width: 100%; position: relative;'></div";
       
    55     var txt = Mustache.to_html(templ, {id: newDiv});
       
    56     this.selector.append(txt);
    54     
    57     
    55     return newDiv;
    58     return newDiv;
    56 };
    59 };