From 3fce1c5c41c9acdd5d800eb220b465fa2ada8276 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tu=C4=9F=C3=A7e=20K=C3=BC=C3=A7=C3=BCko=C4=9Flu?= Date: Thu, 9 Mar 2023 10:38:01 +0300 Subject: [PATCH] Fixe #3190 - DataTable frozen columns in footer not freezing --- components/datatable/FooterCell.vue | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/components/datatable/FooterCell.vue b/components/datatable/FooterCell.vue index 2261c52cc..2f7ae600f 100644 --- a/components/datatable/FooterCell.vue +++ b/components/datatable/FooterCell.vue @@ -44,7 +44,7 @@ export default { let next = this.$el.nextElementSibling; if (next) { - right = DomHandler.getOuterWidth(next) + parseFloat(next.style.left); + right = DomHandler.getOuterWidth(next) + parseFloat(next.style.right || 0); } this.styleObject.right = right + 'px'; @@ -53,7 +53,7 @@ export default { let prev = this.$el.previousElementSibling; if (prev) { - left = DomHandler.getOuterWidth(prev) + parseFloat(prev.style.left); + left = DomHandler.getOuterWidth(prev) + parseFloat(prev.style.left || 0); } this.styleObject.left = left + 'px';