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

ListView - not confining to parent div's height #244

Open
rtdany10 opened this issue Dec 25, 2024 · 0 comments
Open

ListView - not confining to parent div's height #244

rtdany10 opened this issue Dec 25, 2024 · 0 comments

Comments

@rtdany10
Copy link

Only h-[px] inside the class attribute is being respected. If the input is given in percentage(ie h-1/2), it fails.

<div class="p-2 border-2 border-gray-200 h-4/6">
  <ListView
    class="h-4/6"
    :columns="itemColumns"
    :rows="filteredItems"
    :options="{
      selectable: false,
      showTooltip: false,
      resizeColumn: true,
      onRowClick: (row) => console.log(row.item_code + ' was clicked'),
      emptyState: {
        title: 'No items selected',
        description: 'Select an item to get started',
      },
    }"
    row-key='item_code'
  />
</div>

Add h-full at

<div class="relative flex w-full flex-1 flex-col overflow-x-auto">
fixes it.

Peek.2024-12-25.17-41.mp4
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