ListItem
2.0 (part 6): split full-span range management to a dedicated module
#6211
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
What
So far, the full span x coordinate rang needed for highlighting was maintained by
LayoutInfo
andlist_item_scope
. However, other widgets also need this mechanism. This PR splits of full-span management to a dedicated module, and deploys it both inre_ui_example
and wherelist_item2
is currently used.Other changes:
list_item_scope
andfull_span_scope
. When missing, debug build will panic and release build will emit warnings.ui.scope()
, so it's safe to modifyui.style()
from the closure.list_item_scope
now setsui.spacing().item_spacing.y = 0
, since this is required anyway forListItem
s to look good.Follow-up PR will be needed to deploy
full_span
to all relevant widgets and their use in the viewer (#6156).ListItem
2.0 (part 5): deploy to the Visualizers and Overrides UIs #6184Checklist
main
build: rerun.io/viewernightly
build: rerun.io/viewerTo run all checks from
main
, comment on the PR with@rerun-bot full-check
.