Skip to content

Conversation

@KnifeXRage
Copy link
Contributor

Closes: #13421

Added two new properties to ScrollContainer:

  • horizontal_content_align
  • vertical_content_align

Allows 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 enhancement to make alignment options easily discoverable in the Inspector Panel by Beginners.

Here is a demo video of ScrollContainer Content 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.

@AThousandShips AThousandShips added this to the 4.x milestone Oct 30, 2025
@KnifeXRage KnifeXRage force-pushed the scroll_container_simple_content_alignment branch from d61eafc to 173a74e Compare October 31, 2025 07:13
@KnifeXRage KnifeXRage force-pushed the scroll_container_simple_content_alignment branch from 173a74e to 39f54ae Compare October 31, 2025 08:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add Simple Horizontal and Vertical Content Alignment to ScrollContainer

2 participants