Skip to content

Commit

Permalink
Merge pull request #142 from PolymerElements/301
Browse files Browse the repository at this point in the history
Fixes for webcomponents.org
  • Loading branch information
aomarks authored Jun 27, 2017
2 parents c1e1679 + 7875978 commit 194e7f5
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion iron-component-page.html
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,11 @@
}
}

iron-doc-viewer:not([demo]) {
padding: 5px 20px 20px 20px;
max-width: 56em;
}

#error-toast {
background-color: var(--paper-red-600);
}
Expand Down Expand Up @@ -123,7 +128,8 @@
base-href="[[baseHref]]"
demo-src-prefix="[[demoSrcPrefix]]"
title="{{_title}}"
path="{{_path}}">
path="{{_path}}"
on-view-changed="_onViewChanged">
</iron-doc-viewer>

</app-header-layout>
Expand Down Expand Up @@ -186,6 +192,10 @@
}
},

_onViewChanged() {
this.$.viewer.scrollIntoView();
},

_onNavSelect() {
// Note we need to listen for this event, and can't rely just on the
// path changing, because the user might click on the nav item they
Expand Down

0 comments on commit 194e7f5

Please sign in to comment.