Skip to content

GraphNode overflows last child when one of the previous children has vertical sizing set to fill expand #85558

Open
@nagidev

Description

@nagidev

Godot version

v4.2.stable.official [46dc277]

System information

Godot v4.2.stable - Pop!_OS 22.04 LTS - X11 - Vulkan (Forward+) - dedicated NVIDIA GeForce GTX 1650 (nvidia; 535.129.03) - Intel(R) Core(TM) i5-9300H CPU @ 2.40GHz (8 Threads)

Issue description

Setting the vertical sizing flag to Fill Expand of a child of a GraphNode that is not last fills the space until the last child is almost outside the GraphNode. Trying the same setup with a VBoxContainer node instead shows the expected behavior.

Screenshot from 2023-11-30 23-55-36

Steps to reproduce

  1. Add a GraphNode
  2. Add any Control node as its child, then add another so there are at least two child nodes.
  3. Select a child node that is not the last one, and set it's vertical sizing in layout section to enable Fill & Expand.
  4. The last child node will be positioned almost outside the GraphNode

Minimal reproduction project

MRP.zip

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions