From edc82c8b8b04d263c8c2b19615c208903631eb34 Mon Sep 17 00:00:00 2001 From: Sebastien Ros Date: Wed, 30 Mar 2011 17:24:31 -0700 Subject: [PATCH] #17614: Fixing shape tracing scroll position Work Items: 17614 --HG-- branch : 1.x --- .../Scripts/orchard-designertools-shapetracing.js | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/Orchard.Web/Modules/Orchard.DesignerTools/Scripts/orchard-designertools-shapetracing.js b/src/Orchard.Web/Modules/Orchard.DesignerTools/Scripts/orchard-designertools-shapetracing.js index 7a858d84c..6e0631125 100644 --- a/src/Orchard.Web/Modules/Orchard.DesignerTools/Scripts/orchard-designertools-shapetracing.js +++ b/src/Orchard.Web/Modules/Orchard.DesignerTools/Scripts/orchard-designertools-shapetracing.js @@ -280,10 +280,7 @@ $('li[tree-shape-id="' + shapeNode.id + '"]').parents('li').andSelf().find('> .expando-glyph-container').each(function () { openExpando($(this)); }) - .last() - .each(function () { - this.scrollIntoView() - }); + .get(0).scrollIntoView(); refreshBreadcrumb();