Skip to content

Conversation

@kyteidev
Copy link
Contributor

Removes the empty bit at the end of a VirtualScrollView component to match with a regular ScrollView component.

Video showing the empty bit:

Screen.Recording.2025-05-28.at.22.26.00.mov

The changes related to imports are caused by the code formatter in my code editor.

@kyteidev kyteidev requested a review from marc2332 as a code owner May 28, 2025 19:44
@marc2332
Copy link
Owner

The changes related to imports are caused by the code formatter in my code editor.

You can format it correctly like this:

cargo +nightly fmt --all -- --error-on-unformatted --unstable-features

@kyteidev
Copy link
Contributor Author

Thanks, it is now fixed.

@marc2332
Copy link
Owner

A test is failing @kyteidev

@kyteidev
Copy link
Contributor Author

Yes, I noticed. It seems the change I made removes smoother scrolling as it removes the buffer area.

@marc2332
Copy link
Owner

Yes, I noticed. It seems the change I made removes smoother scrolling as it removes the buffer area.

No, it doesn't remove the smooth scrolling from my testing.

You can update the test to fix it:

        assert_eq!(content.children_ids().len(), 10);

        for (n, i) in (20..30).enumerate() {
            let child = content.get(n);
            assert_eq!(
                child.get(0).text(),
                Some(format!("{i} Hello, World!").as_str())
            );
        }

@kyteidev
Copy link
Contributor Author

Alright, it is now fixed! I read the comment for the wrong test, so I thought I accidentally removed smooth scrolling lol

@marc2332 marc2332 added this to the 0.3.4 milestone May 28, 2025
@marc2332 marc2332 moved this to Pending for Review in Freya Planning May 28, 2025
@marc2332
Copy link
Owner

I will cherry-pick this for a 0.3.4 release

@marc2332
Copy link
Owner

@marc2332
Copy link
Owner

Also, please next time open the pr from a different branch instead of your main ❤️ (it makes it easier for me)

Thanks for the PR anyway, I appreciate it 🦀 😄

@kyteidev
Copy link
Contributor Author

Ok, thanks for letting me know!

@codecov
Copy link

codecov bot commented May 28, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 76.38%. Comparing base (af22491) to head (6f7a40c).
Report is 1 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #1191   +/-   ##
=======================================
  Coverage   76.38%   76.38%           
=======================================
  Files         238      238           
  Lines       29402    29402           
=======================================
  Hits        22459    22459           
  Misses       6943     6943           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@marc2332 marc2332 merged commit f3b9224 into marc2332:main May 28, 2025
5 checks passed
@github-project-automation github-project-automation bot moved this from Pending for Review to Done in Freya Planning May 28, 2025
marc2332 pushed a commit that referenced this pull request May 28, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

2 participants