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

Fix Issue 12493: Last slot of reorderable table breaks when page is scrolled #12853

Merged
merged 1 commit into from
Apr 25, 2023

Conversation

hugoaboud
Copy link

Defect Fixes

Fixes #12493
Fixes #10003

Solution

Apparently the rowY value was being offset by the window scroll twice:

image
image

Which wouldn't allow the condition pageY < rowMidY to be true, so no bottom slots would work after a certain scroll amount.

Both sections trace back to the same commit.

However, no other occurrence of getOffset on the project required an extra getWindowScrollTop:
image

There were no tests related to this to be updated, but manual tests on the showcase indicate the fix works.

@vercel
Copy link

vercel bot commented Mar 31, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

1 Ignored Deployment
Name Status Preview Comments Updated
primeng ⬜️ Ignored (Inspect) Mar 31, 2023 at 8:06PM (UTC)

@cetincakiroglu cetincakiroglu added Type: Bug Issue contains a bug related to a specific component. Something about the component is not working LTS-PORTABLE labels Apr 25, 2023
@cetincakiroglu cetincakiroglu added this to the 15.4.2 milestone Apr 25, 2023
@cetincakiroglu cetincakiroglu merged commit 03d30f8 into primefaces:master Apr 25, 2023
@cetincakiroglu cetincakiroglu removed this from the 15.4.2 milestone Apr 26, 2023
@cetincakiroglu cetincakiroglu removed the Type: Bug Issue contains a bug related to a specific component. Something about the component is not working label Apr 26, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants