We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents c1e1679 + 7875978 commit 194e7f5Copy full SHA for 194e7f5
iron-component-page.html
@@ -70,6 +70,11 @@
70
}
71
72
73
+ iron-doc-viewer:not([demo]) {
74
+ padding: 5px 20px 20px 20px;
75
+ max-width: 56em;
76
+ }
77
+
78
#error-toast {
79
background-color: var(--paper-red-600);
80
@@ -123,7 +128,8 @@
123
128
base-href="[[baseHref]]"
124
129
demo-src-prefix="[[demoSrcPrefix]]"
125
130
title="{{_title}}"
126
- path="{{_path}}">
131
+ path="{{_path}}"
132
+ on-view-changed="_onViewChanged">
127
133
</iron-doc-viewer>
134
135
</app-header-layout>
@@ -186,6 +192,10 @@
186
192
187
193
},
188
194
195
+ _onViewChanged() {
196
+ this.$.viewer.scrollIntoView();
197
+ },
198
189
199
_onNavSelect() {
190
200
// Note we need to listen for this event, and can't rely just on the
191
201
// path changing, because the user might click on the nav item they
0 commit comments