@tekkare/auriga 0.1.57 → 0.1.59
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/dist/module.json
CHANGED
|
@@ -93,7 +93,7 @@ export default defineComponent({
|
|
|
93
93
|
});
|
|
94
94
|
function listenToHeaderChange() {
|
|
95
95
|
const fixedHeader = document.getElementById("arg_header");
|
|
96
|
-
const config = { attributes: true };
|
|
96
|
+
const config = { attributes: true, childList: true };
|
|
97
97
|
const callback = function() {
|
|
98
98
|
adjustFilterPosition();
|
|
99
99
|
};
|
|
@@ -103,12 +103,14 @@ export default defineComponent({
|
|
|
103
103
|
}
|
|
104
104
|
}
|
|
105
105
|
function adjustFilterPosition() {
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
106
|
+
setTimeout(() => {
|
|
107
|
+
const header = document.getElementById("arg_header");
|
|
108
|
+
const filterCard = document.getElementById("arg_filter_card");
|
|
109
|
+
if (header && filterCard) {
|
|
110
|
+
const headerHeight = header.offsetHeight;
|
|
111
|
+
filterCard.style.top = `${headerHeight + 8}px`;
|
|
112
|
+
}
|
|
113
|
+
});
|
|
112
114
|
}
|
|
113
115
|
watch(
|
|
114
116
|
() => props.isOpen,
|
|
@@ -51,7 +51,7 @@ export default defineComponent({
|
|
|
51
51
|
});
|
|
52
52
|
function listenToHeaderChange() {
|
|
53
53
|
const fixedHeader = document.getElementById("arg_header");
|
|
54
|
-
const config = { attributes: true };
|
|
54
|
+
const config = { attributes: true, childList: true };
|
|
55
55
|
const callback = function() {
|
|
56
56
|
adjustMarginForBody();
|
|
57
57
|
};
|
|
@@ -61,17 +61,19 @@ export default defineComponent({
|
|
|
61
61
|
}
|
|
62
62
|
}
|
|
63
63
|
function adjustMarginForBody() {
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
64
|
+
setTimeout(() => {
|
|
65
|
+
const fixedHeader = document.getElementById("arg_header");
|
|
66
|
+
const bodyContent = document.getElementById("arg_main_layout_section");
|
|
67
|
+
const infoBar = document.getElementById("arg_info_section");
|
|
68
|
+
if (fixedHeader && bodyContent) {
|
|
69
|
+
const headerHeight = fixedHeader.offsetHeight;
|
|
70
|
+
bodyContent.style.marginTop = `${headerHeight}px`;
|
|
71
|
+
}
|
|
72
|
+
if (fixedHeader && infoBar) {
|
|
73
|
+
const headerHeight = fixedHeader.offsetHeight;
|
|
74
|
+
infoBar.style.top = `${headerHeight + 8}px`;
|
|
75
|
+
}
|
|
76
|
+
}, 500);
|
|
75
77
|
}
|
|
76
78
|
}
|
|
77
79
|
});
|