Skip to content

refactor: move the list layout model into the shared core - #45

Open
SectionTN wants to merge 2 commits into
mainfrom
refactor/core-list-layout
Open

SectionTN wants to merge 2 commits into
mainfrom
refactor/core-list-layout

Conversation

@SectionTN

Copy link
Copy Markdown
Owner

first step toward Android reading its offsets from the same model iOS lays out with. ListLayout and ListRows move from cpp/adapter to cpp/core, which Android already compiles, so no build file changes.

positions along the scroll axis are now doubles. float prefix sums stop being exact past 2^24: in a list of 200,000 rows of 101, the content length came out 33,900 short. Android will feed the model in px, where a long list crosses that line sooner, at about 61,000 rows of 100dp.

Float prefix sums round past 2^24, so in a list of 200,000 rows of 101
the content length came out 33,900 short and row 166,113 started at
16,777,412 instead of 16,777,413. Positions along the scroll axis are now
doubles, and item lengths stay floats.
@coderabbitai

coderabbitai Bot commented Nov 28, 2026

Copy link
Copy Markdown

Important

  • Trigger review

This repository does not receive automatic reviews because it has fewer than 10 stars.

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: eb9f26a3-9a70-4746-a5db-ad488959e62d
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

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.

1 participant