Update FooterCell.vue

pull/5039/head
tugcekucukoglu 2023-12-06 09:49:36 +03:00
parent 04520ee45e
commit 26652d245c
1 changed files with 2 additions and 2 deletions

View File

@ -47,7 +47,7 @@ export default {
let right = 0;
let next = DomHandler.getNextElementSibling(this.$el, '.p-frozen-column');
if (next) {
right = DomHandler.getOuterWidth(next) + parseFloat(next.style.left);
right = DomHandler.getOuterWidth(next) + parseFloat(next.style.right|| 0);
}
this.styleObject.right = right + 'px';
}
@ -55,7 +55,7 @@ export default {
let left = 0;
let prev = DomHandler.getPreviousElementSibling(this.$el, '.p-frozen-column');
if (prev) {
left = DomHandler.getOuterWidth(prev) + parseFloat(prev.style.left);
left = DomHandler.getOuterWidth(prev) + parseFloat(prev.style.left|| 0);
}
this.styleObject.left = left + 'px';
}