Skip to content

Fixed grid header row/column #770

Answered by nicoburns
PPakalns asked this question in Q&A
Dec 26, 2024 · 1 comments · 2 replies
Discussion options

You must be logged in to vote

Technically it looks like i could store "stickiness" flag as metadata and I just shouldn't apply scroll offset to element and it would be drawn correctly. If this is all that is required, could taffy add position: sticky and add a flag to layout if it should be sticky?

So I think the "correct" computation for position: sticky is a little more complicated than just not applying the scroll offset:

  1. It should conditionally not apply the scroll offset once the item would otherwise scroll out of view
  2. The position at which the "sticky" position takes effect should be inset by the top/left/bottom/right styles.
  3. There might need to be some kind of conflict resolution for over-constrained cases (…

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@nicoburns
Comment options

Answer selected by PPakalns
@PPakalns
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants