Bug 785151 - Use ScrollIntoViewIfNeeded in the markup panel. r=jwalker
authorDave Camp <dcamp@mozilla.com>
Fri, 24 Aug 2012 17:51:38 -0700
changeset 105426 73b1af99b72db8051f53b8fff859637cc980f740
parent 105425 c80d0e010be310c2770e6668a89ee5cce1e97f3d
child 105427 9b58a0a085ee0254597c98205c9afcc1360b480b
push id55
push usershu@rfrn.org
push dateThu, 30 Aug 2012 01:33:09 +0000
reviewersjwalker
bugs785151
milestone17.0a1
Bug 785151 - Use ScrollIntoViewIfNeeded in the markup panel. r=jwalker
browser/devtools/markupview/MarkupView.jsm
--- a/browser/devtools/markupview/MarkupView.jsm
+++ b/browser/devtools/markupview/MarkupView.jsm
@@ -342,17 +342,17 @@ MarkupView.prototype = {
   showNode: function MT_showNode(aNode)
   {
     this.importNode(aNode);
     let walker = documentWalker(aNode);
     let parent;
     while (parent = walker.parentNode()) {
       this.expandNode(parent);
     }
-//    LayoutHelpers.scrollIntoViewIfNeeded(this._containers.get(aNode).elt, false);
+    LayoutHelpers.scrollIntoViewIfNeeded(this._containers.get(aNode).editor.elt, false);
   },
 
   /**
    * Expand the container's children.
    */
   _expandContainer: function MT__expandContainer(aContainer)
   {
     if (aContainer.hasChildren && !aContainer.expanded) {