src/js/layout.js
branchpopcorn-port
changeset 217 ec3e6d34462c
parent 159 de92bfdcbe4c
child 238 6008172a0592
child 287 5c7495102bd7
--- a/src/js/layout.js	Wed Nov 09 14:49:20 2011 +0100
+++ b/src/js/layout.js	Wed Nov 09 17:06:23 2011 +0100
@@ -49,8 +49,11 @@
 
 IriSP.LayoutManager.prototype.createDiv = function() {
     var newDiv = Popcorn.guid(this._div + "_widget_");
-    this._widgets.push(newDiv);    
-    this.selector.append("<div id='" + newDiv + "' style='width: 100%'></div");
+    this._widgets.push(newDiv);
+
+    var templ = "<div id='{{id}}' style='width: 100%; position: relative;'></div";
+    var txt = Mustache.to_html(templ, {id: newDiv});
+    this.selector.append(txt);
     
     return newDiv;
 };