Skip to content
This repository has been archived by the owner on Mar 13, 2018. It is now read-only.

Commit

Permalink
Merge pull request #35 from atotic/patch-1
Browse files Browse the repository at this point in the history
Scroll to top if data changes
  • Loading branch information
ebidel committed Dec 19, 2014
2 parents 2e351a1 + 6659bd7 commit d2e22b7
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions elements/core-doc-page.html
Original file line number Diff line number Diff line change
Expand Up @@ -207,6 +207,11 @@ <h3 id="{{data.name}}.methods">Methods</h3>
if (elementToFocus) {
elementToFocus.scrollIntoView();
}
else {
var viewer = this.$.panel.scroller;
viewer.scrollTop = 0;
viewer.scrollLeft = 0;
}
});
}

Expand Down

0 comments on commit d2e22b7

Please sign in to comment.