@salesforcedevs/docs-components 1.3.131 → 1.3.138
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@salesforcedevs/docs-components",
|
|
3
|
-
"version": "1.3.
|
|
3
|
+
"version": "1.3.138",
|
|
4
4
|
"description": "Docs Lightning web components for DSC",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"main": "index.js",
|
|
@@ -24,5 +24,5 @@
|
|
|
24
24
|
"@types/lodash.orderby": "^4.6.7",
|
|
25
25
|
"@types/lodash.uniqby": "^4.7.7"
|
|
26
26
|
},
|
|
27
|
-
"gitHead": "
|
|
27
|
+
"gitHead": "23c5aa9a539b956d4d2c592d366663510af4f2ac"
|
|
28
28
|
}
|
|
@@ -214,13 +214,16 @@ export default class ContentLayout extends LightningElement {
|
|
|
214
214
|
|
|
215
215
|
// sync with the browser to account for any reflows that may have happened
|
|
216
216
|
requestAnimationFrame(() => {
|
|
217
|
+
// ternary is a temporary fix for the global nav height reporting incorrectly on some browsers
|
|
217
218
|
const globalNavHeight =
|
|
218
|
-
globalNavEl.
|
|
219
|
-
|
|
219
|
+
(globalNavEl.getBoundingClientRect().height !== 72 ? 0 : 72) +
|
|
220
|
+
contextNavEl.getBoundingClientRect().height;
|
|
221
|
+
const docHeaderHeight = docHeaderEl.getBoundingClientRect().height;
|
|
220
222
|
sidebarEl.style.setProperty(
|
|
221
223
|
"--dx-c-content-sidebar-sticky-top",
|
|
222
224
|
`${globalNavHeight + docHeaderHeight}px`
|
|
223
225
|
);
|
|
226
|
+
|
|
224
227
|
docHeaderEl.style.setProperty(
|
|
225
228
|
"--dx-g-global-header-height",
|
|
226
229
|
`${globalNavHeight}px`
|
|
@@ -234,7 +237,7 @@ export default class ContentLayout extends LightningElement {
|
|
|
234
237
|
window.innerWidth < 769
|
|
235
238
|
? globalNavHeight +
|
|
236
239
|
docHeaderHeight +
|
|
237
|
-
sidebarEl.
|
|
240
|
+
sidebarEl.getBoundingClientRect().height
|
|
238
241
|
: globalNavHeight + docHeaderHeight
|
|
239
242
|
}px`
|
|
240
243
|
);
|
|
@@ -247,7 +250,7 @@ export default class ContentLayout extends LightningElement {
|
|
|
247
250
|
docHeadingEl.style.scrollMarginTop = `${
|
|
248
251
|
globalNavHeight +
|
|
249
252
|
docHeaderHeight +
|
|
250
|
-
docPhaseEl.
|
|
253
|
+
docPhaseEl.getBoundingClientRect().height
|
|
251
254
|
}px`;
|
|
252
255
|
});
|
|
253
256
|
|
|
@@ -259,7 +262,7 @@ export default class ContentLayout extends LightningElement {
|
|
|
259
262
|
rightNavBarEl.style.top = `${
|
|
260
263
|
globalNavHeight +
|
|
261
264
|
docHeaderHeight +
|
|
262
|
-
docPhaseEl.
|
|
265
|
+
docPhaseEl.getBoundingClientRect().height
|
|
263
266
|
}px`;
|
|
264
267
|
}
|
|
265
268
|
}
|