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

Improve automatic item size estimation #373

Merged
merged 1 commit into from
Feb 11, 2024
Merged

Improve automatic item size estimation #373

merged 1 commit into from
Feb 11, 2024

Conversation

inokawa
Copy link
Owner

@inokawa inokawa commented Feb 10, 2024

fix #371
fix #15

The previous logic didn't work correctly with reverse scrolling, but it's now fixed.

@inokawa inokawa force-pushed the fix-estimate-size branch 9 times, most recently from af1fcfa to 9658ebb Compare February 11, 2024 05:54
@inokawa inokawa changed the title Improve item size estimation Improve automatic item size estimation Feb 11, 2024
@inokawa inokawa force-pushed the fix-estimate-size branch 2 times, most recently from ccf4d9a to 7577ca8 Compare February 11, 2024 08:30
@inokawa inokawa marked this pull request as ready for review February 11, 2024 08:52
@inokawa inokawa merged commit 66e3afe into main Feb 11, 2024
4 checks passed
@inokawa inokawa deleted the fix-estimate-size branch February 11, 2024 11:14
takecchi pushed a commit to cuculus-dev/cuculus that referenced this pull request Feb 12, 2024
[![Mend
Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com)

This PR contains the following updates:

| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
| [virtua](https://togithub.com/inokawa/virtua) | [`0.25.0` ->
`0.26.0`](https://renovatebot.com/diffs/npm/virtua/0.25.0/0.26.0) |
[![age](https://developer.mend.io/api/mc/badges/age/npm/virtua/0.26.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://developer.mend.io/api/mc/badges/adoption/npm/virtua/0.26.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://developer.mend.io/api/mc/badges/compatibility/npm/virtua/0.25.0/0.26.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/virtua/0.25.0/0.26.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|

@coderabbitai: ignore

---

### Release Notes

<details>
<summary>inokawa/virtua (virtua)</summary>

### [`v0.26.0`](https://togithub.com/inokawa/virtua/releases/tag/0.26.0)

[Compare
Source](https://togithub.com/inokawa/virtua/compare/0.25.0...0.26.0)

-   **BREAKING CHANGE**: `reverse` prop was removed from `Virtualizer`
- You can achieve the same effect by writing small CSS and using
`scrollRef` prop of `Virtualizer`
https://github.com/inokawa/virtua/blob/44f5f1b7d56f9734b4e3c56809c062adf9d2e5a4/src/react/VList.tsx#L92-L95
    -   Or you can continue to use `reverse` prop of `VList`.

#### What's Changed

- Remove min-height/min-width from container by
[@&#8203;inokawa](https://togithub.com/inokawa) in
[inokawa/virtua#359
- Improve automatic item size estimation by
[@&#8203;inokawa](https://togithub.com/inokawa) in
[inokawa/virtua#373
- Refactor jump calculation by
[@&#8203;inokawa](https://togithub.com/inokawa) in
[inokawa/virtua#363
- Optimize Vue Virtualizer with
[@&#8203;vue/babel-plugin-jsx](https://togithub.com/vue/babel-plugin-jsx)
by [@&#8203;inokawa](https://togithub.com/inokawa) in
[inokawa/virtua#374

**Full Changelog**:
inokawa/virtua@0.25.0...0.26.0

</details>

---

### Configuration

📅 **Schedule**: Branch creation - At any time (no schedule defined),
Automerge - At any time (no schedule defined).

🚦 **Automerge**: Enabled.

♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the
rebase/retry checkbox.

🔕 **Ignore**: Close this PR and you won't be reminded about this update
again.

---

- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check
this box

---

This PR has been generated by [Mend
Renovate](https://www.mend.io/free-developer-tools/renovate/). View
repository job log
[here](https://developer.mend.io/github/cuculus-dev/cuculus).

<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNy4xNzMuMCIsInVwZGF0ZWRJblZlciI6IjM3LjE3My4wIiwidGFyZ2V0QnJhbmNoIjoibWFpbiJ9-->

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Glitch may happen when scrolling up near the top on iOS Estimate item size automatically
1 participant