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

Lazy Table with Virtual Scroll and scrollHeight flex hides content and jumps to top on resize with Firefox #16747

Open
jase88 opened this issue Nov 14, 2024 · 0 comments
Labels
Status: Needs Triage Issue will be reviewed by Core Team and a relevant label will be added as soon as possible

Comments

@jase88
Copy link
Contributor

jase88 commented Nov 14, 2024

Describe the bug

If using a lazy table with virtual scrolling and scrollHeight=flex

  <p-table
    ...
    [scrollable]="true"
    columnResizeMode="expand"
    scrollHeight="flex"
    [virtualScroll]="true"
    [virtualScrollOptions]="{ showLoader: false, showSpacer: false }"
    [virtualScrollDelay]="0"
    [resetPageOnSort]="false"
    [lazy]="true"
    [tableStyle]="{ 'table-layout': 'fixed' }"
  >

on Firefox the content is hidden and the scrolling jumps to the top if resizing.
This only occurs if scrolling a bit within the table. If kept in initial scrolling state resizing works fine.

PrimeNG-Lazy-Table-VirtualScrolling-scrollHeight-flex-Firefox.mov

After Scrolling again the content reappears.

Environment

MacOS 15.1
Firefox 132.0.2

Reproducer

https://github.com/jase88/primeng-table-scrollheight-flex-firefox

Angular version

18.2.0

PrimeNG version

17.18.12

Build / Runtime

Angular CLI App

Language

TypeScript

Node version (for AoT issues node --version)

22.8.0

Browser(s)

Firefox 132.0.2

Steps to reproduce the behavior

  1. Checkout https://github.com/jase88/primeng-table-scrollheight-flex-firefox
  2. Run npm install && npm run start
  3. Open localhost:4200 on Firefox
  4. Scroll table a bit
  5. Resize table

Expected behavior

  • Table should not jump to the top
  • Table should be displayed properly
@jase88 jase88 added the Status: Needs Triage Issue will be reviewed by Core Team and a relevant label will be added as soon as possible label Nov 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Status: Needs Triage Issue will be reviewed by Core Team and a relevant label will be added as soon as possible
Projects
None yet
Development

No branches or pull requests

1 participant