CSR-257 code updates.
This commit is contained in:
parent
6ca9bea993
commit
827c5e6d58
1 changed files with 2 additions and 9 deletions
|
|
@ -42,14 +42,12 @@ export default {
|
||||||
paddingHeight: 0,
|
paddingHeight: 0,
|
||||||
backLink: "",
|
backLink: "",
|
||||||
buttonText: "",
|
buttonText: "",
|
||||||
currentYear: new Date().getFullYear(),
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
mounted() {
|
mounted() {
|
||||||
this.paddingHeight = document.getElementById("infoBox").offsetHeight + 24;
|
this.paddingHeight = document.querySelector(".footer #infoBox").offsetHeight + 24;
|
||||||
this.$nextTick(() => {
|
this.$nextTick(() => {
|
||||||
window.addEventListener('resize', this.onResize);
|
window.addEventListener('resize', this.onResize);
|
||||||
this.checkHeight();
|
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
beforeUnmount() {
|
beforeUnmount() {
|
||||||
|
|
@ -57,12 +55,7 @@ export default {
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
onResize() {
|
onResize() {
|
||||||
this.paddingHeight = document.getElementById("infoBox").offsetHeight;
|
this.paddingHeight = document.querySelector(".footer #infoBox").offsetHeight;
|
||||||
this.checkHeight();
|
|
||||||
},
|
|
||||||
checkHeight() {
|
|
||||||
const parentHeight = document.getElementById('infoBox').clientHeight;
|
|
||||||
const wrapper2 = document.getElementById('stacked');
|
|
||||||
},
|
},
|
||||||
initializeComponent(cmsContent) {
|
initializeComponent(cmsContent) {
|
||||||
this.backLink = cmsContent.BackButtonText;
|
this.backLink = cmsContent.BackButtonText;
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue