diff --git a/components/lib/datatable/BodyCell.vue b/components/lib/datatable/BodyCell.vue index 362da1760..ff3cf5499 100755 --- a/components/lib/datatable/BodyCell.vue +++ b/components/lib/datatable/BodyCell.vue @@ -450,7 +450,7 @@ export default { if (align === 'right') { let right = 0; - let next = this.$el.nextElementSibling; + let next = DomHandler.getNextElementSibling(this.$el, '[data-p-frozen-column="true"]'); if (next) { right = DomHandler.getOuterWidth(next) + parseFloat(next.style.right || 0); @@ -459,7 +459,7 @@ export default { this.styleObject.right = right + 'px'; } else { let left = 0; - let prev = this.$el.previousElementSibling; + let prev = DomHandler.getPreviousElementSibling(this.$el, '[data-p-frozen-column="true"]'); if (prev) { left = DomHandler.getOuterWidth(prev) + parseFloat(prev.style.left || 0); diff --git a/components/lib/datatable/FooterCell.vue b/components/lib/datatable/FooterCell.vue index 9d64c7c5d..89efacdd9 100644 --- a/components/lib/datatable/FooterCell.vue +++ b/components/lib/datatable/FooterCell.vue @@ -1,5 +1,5 @@