Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DataTable with virtual scroll missing horizontal row borders #43

Open
lminuti opened this issue Oct 9, 2024 · 0 comments
Open

DataTable with virtual scroll missing horizontal row borders #43

lminuti opened this issue Oct 9, 2024 · 0 comments

Comments

@lminuti
Copy link

lminuti commented Oct 9, 2024

Step to reproduce

  1. Open file TableDoc.vue
  2. Transform the first grid in a Virtual grid
  3. The border of the grid rows disappears
diff --git a/src/views/uikit/TableDoc.vue b/src/views/uikit/TableDoc.vue
index 5161fff..7b079e1 100644
--- a/src/views/uikit/TableDoc.vue
+++ b/src/views/uikit/TableDoc.vue
@@ -146,8 +146,10 @@ function calculateCustomerTotal(name) {
         <div class="font-semibold text-xl mb-4">Filtering</div>
         <DataTable
             :value="customers1"
-            :paginator="true"
             :rows="10"
+            scrollable
+            scrollHeight="400px"
+            :virtualScrollerOptions="{ itemSize: 46 }"
             dataKey="id"
             :rowHover="true"
             v-model:filters="filters1"

Workaround

Add the following style:

table.p-datatable-table {
  border-collapse: separate;
}

See also: primefaces/primevue#6091

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant