Add StickyContainer#114863
Open
dugramen wants to merge 1 commit into
Open
Conversation
100a431 to
32ba170
Compare
32ba170 to
b617540
Compare
b617540 to
4e8ca4d
Compare
4e8ca4d to
f9f290b
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
closes godotengine/godot-proposals#5599
2026-01-11.14-01-58.mp4
Adds
StickyContainer. It allows sticking any children of StickyContainer to the bounds of the nearest ScrollContainer.At runtime (not in the edited scene), when a child is added to StickyContainer, it gets reparented to the ScrollContainer, so that the controls appear above the normal scroll content and receive input first. The StickyContainer's rect is used to track where the sticky nodes would normally be, and then ScrollContainer handles actually positioning them, keeping it within its global rect
There's an optional
bounding_container, which is a NodePath. If its set, the sticky control will also be limited to the bounds of that control, enabling those section headers.Finally there's an optional
stackedproperty, enabling the last example in the video.There's a signal for "status_changed", telling when a sticky node is stuck, unstuck but out of view, or unstuck but in view. I'm not sure about these states, but it was what the linked proposal was mainly requesting