<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -13,12 +13,16 @@ Primer.prototype = {
     $(&quot;html head&quot;).append(&quot;&lt;style&gt;.primer_text { margin: 0; padding: 0; line-height: normal; }&lt;/style&gt;&quot;)
     
     var el = $(this.container).eq(0)
-    el.css(&quot;position&quot;, &quot;relative&quot;)
+    
+    el.append('&lt;div id=&quot;primer_text&quot;&gt;&lt;/div&gt;')
+    var tel = $(&quot;#primer_text&quot;, el).eq(0)
+    tel.css(&quot;position&quot;, &quot;relative&quot;)
+    this.element = tel
+    
     el.append('&lt;canvas width=&quot;' + this.width + '&quot; height=&quot;' + this.height + '&quot;&gt;&lt;/canvas&gt;')
     var jelc = $('canvas', el)
     var elc = jelc[0]
     this.context = elc.getContext('2d')
-    this.element = el
     
     this.root = new Primer.Layer()
     this.root.bind(this)
@@ -62,6 +66,7 @@ Primer.prototype = {
   draw: function() {
     this.context.clearRect(0, 0, this.width, this.height)
     $(&quot;.primer_text&quot;, this.element).remove()
+    this.setupExt()
     this.root.draw()
   },
   </diff>
      <filename>primer.js</filename>
    </modified>
    <modified>
      <diff>@@ -59,6 +59,7 @@
     &lt;/script&gt;
   &lt;/head&gt;
   &lt;body&gt;
+    &lt;p&gt;Testing&lt;/p&gt;
     &lt;div id=&quot;p1&quot;&gt;&lt;/div&gt;
   &lt;/body&gt;
 &lt;/html&gt;
\ No newline at end of file</diff>
      <filename>test/test.html</filename>
    </modified>
    <modified>
      <diff>@@ -25,6 +25,11 @@
         bye.fillStyle = &quot;#FF0000&quot;
         bye.fillText(&quot;goodbye, suckers!&quot;, 10, 50, 150)
         hello.addChild(bye)
+        
+        var box = new Primer.Layer()
+        box.fillStyle = &quot;#CCCCFF&quot;
+        box.fillRect(10, 10, 70, 70)
+        p1.addChild(box)
       })
     &lt;/script&gt;
   &lt;/head&gt;</diff>
      <filename>test/text_test.html</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>ee5d855e5d5c39ba317c637886558de7d8fd3e27</id>
    </parent>
  </parents>
  <author>
    <name>Tom Preston-Werner</name>
    <email>tom@mojombo.com</email>
  </author>
  <url>http://github.com/mojombo/primer/commit/989e8d717f0de7f542440bea2324576982c45299</url>
  <id>989e8d717f0de7f542440bea2324576982c45299</id>
  <committed-date>2008-10-24T20:12:16-07:00</committed-date>
  <authored-date>2008-10-24T20:12:16-07:00</authored-date>
  <message>fix position relative bug and reset ext on clear</message>
  <tree>ca85721fb05a8e538f47724dcc82a6b6e047fce3</tree>
  <committer>
    <name>Tom Preston-Werner</name>
    <email>tom@mojombo.com</email>
  </committer>
</commit>
