@eric-emg/symphiq-components 1.2.103 → 1.2.104
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.
|
@@ -25083,24 +25083,15 @@ class FloatingTocComponent {
|
|
|
25083
25083
|
}
|
|
25084
25084
|
calculateContainerOffset() {
|
|
25085
25085
|
if (this.embedded) {
|
|
25086
|
-
|
|
25087
|
-
const PARENT_HEADER_HEIGHT = 72;
|
|
25088
|
-
if (this.containerElement) {
|
|
25089
|
-
const rect = this.containerElement.getBoundingClientRect();
|
|
25090
|
-
const viewportOffset = Math.max(0, rect.top);
|
|
25091
|
-
this.containerTopOffset.set(viewportOffset + PARENT_HEADER_HEIGHT);
|
|
25092
|
-
}
|
|
25093
|
-
else {
|
|
25094
|
-
this.containerTopOffset.set(PARENT_HEADER_HEIGHT);
|
|
25095
|
-
}
|
|
25086
|
+
this.containerTopOffset.set(250);
|
|
25096
25087
|
}
|
|
25097
25088
|
else {
|
|
25098
25089
|
this.containerTopOffset.set(0);
|
|
25099
25090
|
}
|
|
25100
25091
|
}
|
|
25101
25092
|
getCalculatedTopPosition() {
|
|
25102
|
-
if (this.embedded
|
|
25103
|
-
return
|
|
25093
|
+
if (this.embedded) {
|
|
25094
|
+
return 250;
|
|
25104
25095
|
}
|
|
25105
25096
|
return this.BASE_OFFSET;
|
|
25106
25097
|
}
|