Add Simple Horizontal and Vertical Content Alignment Options to ScrollContainer #112200
+165
−2
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: #13421
Added two new properties to ScrollContainer:
horizontal_content_alignvertical_content_alignAllows ScrollContainer content to be aligned left/center/right and top/center/bottom from Inspector or using GDScript.
And also updated Documentation in doc/classes/ScrollContainer.xml. This is just a
enhancementto make alignment options easily discoverable in the Inspector Panel by Beginners.Here is a demo video of
ScrollContainerContent Alignment Feature:Scroll.Container.Content.Alignment.Feature.mp4
I opened this PR previously but i messed up too much in that and created too much commits. So, i closed that and this is a fresh PR.