-
-
Notifications
You must be signed in to change notification settings - Fork 98
fix: remove unnecessary empty section at the end of VirtualScrollView component #1191
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
Conversation
You can format it correctly like this:
|
|
Thanks, it is now fixed. |
|
A test is failing @kyteidev |
|
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())
);
} |
|
Alright, it is now fixed! I read the comment for the wrong test, so I thought I accidentally removed smooth scrolling lol |
|
I will cherry-pick this for a 0.3.4 release |
|
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 🦀 😄 |
|
Ok, thanks for letting me know! |
Codecov ReportAll modified and coverable lines are covered by tests ✅
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. 🚀 New features to boost your workflow:
|
Removes the empty bit at the end of a
VirtualScrollViewcomponent to match with a regularScrollViewcomponent.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.