Actually use the moveTo context I added earlier.
authorBenjamin Smedberg <benjamin@smedbergs.us>
Mon, 14 Apr 2008 16:57:39 -0400
changeset 24 76f6d3a9078a6aaa08d10d0fbf3fd9e0eaba9353
parent 23 d2b736ff622ba7a4b05a5fb254a3e819ef34a53c
child 25 904ea0ddd0b1475e6a0bbe5707ad5c5e6c4a9666
push id2
push userbsmedberg@mozilla.com
push dateMon, 14 Apr 2008 21:07:23 +0000
Actually use the moveTo context I added earlier.
www/navigate.js
--- a/www/navigate.js
+++ b/www/navigate.js
@@ -308,17 +308,17 @@ function doLayout()
         x = minx;
     }
 
     let bottom = gHeight;
 
     for each (let child in rev.children) {
       if (!child.gc) {
         child.gc = true;
-        child.moveTo(x, y);
+        child.moveTo(x, y, rev);
         x += REVWIDTH + HSPACING;
         if (y < bottom) {
           drawChildren(child, position + 1);
         }
         if (!child.loaded())
           loadMore.push(child);
 
         leftpositions[position] = child;
@@ -357,17 +357,17 @@ function doLayout()
         x = minx;
     }
     
     var top = 0;
     
     for each (let parent in rev.parents) {
       if (!parent.gc) {
         parent.gc = true;
-        parent.moveTo(x, y);
+        parent.moveTo(x, y, rev);
         x += REVWIDTH + VSPACING;
         
         if (y > top) {
           drawParents(parent, position - 1);
         }
         if (!parent.loaded())
           loadMore.push(parent);