From cde0b4b57490ef0d401928e75c7ed4a1160ee914 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: Wed, 11 May 2022 15:56:38 +0300 Subject: [PATCH] Fixed #2534- Header elements in DataTable with virtualScroller are not in the correct position on the scroll. --- src/components/datatable/DataTable.vue | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/components/datatable/DataTable.vue b/src/components/datatable/DataTable.vue index d1cf28f7d..c282816a9 100755 --- a/src/components/datatable/DataTable.vue +++ b/src/components/datatable/DataTable.vue @@ -2056,6 +2056,10 @@ export default { display: table-cell; } +.p-datatable-scrollable .p-virtualscroller > .p-datatable-table { + display: inline-block; /* For Safari */ +} + /* Resizable */ .p-datatable-resizable > .p-datatable-wrapper { overflow-x: auto;