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 scroll panel height calculation bug #2404

Merged
merged 2 commits into from
Oct 30, 2023
Merged

Fix scroll panel height calculation bug #2404

merged 2 commits into from
Oct 30, 2023

Conversation

texodus
Copy link
Member

@texodus texodus commented Oct 27, 2023

Perspective's virtual scroll panels use a size-hint system to create the panels geometry without rendering or measuring all children (of which there may be thousands). However, these values have bitrotted. This PR fixes the hints to reflect the current geometry, but also adds a validation step to log in debug mode when the hints are incorrect.

I don't think this is worth an complex sizing/scroll system like regular-table has, but it woul dbe nice to be able to specif these hard-coded geometry values in custom CSS rules at least.

Before:
Screenshot 2023-10-27 at 12 21 46 AM

After:
Screenshot 2023-10-27 at 12 22 44 AM

@texodus texodus added the bug Concrete, reproducible bugs label Oct 27, 2023
@texodus texodus merged commit 9415075 into master Oct 30, 2023
13 checks passed
@texodus texodus deleted the scroll-panel-height branch October 30, 2023 16:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Concrete, reproducible bugs
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant