Skip to content

GraphNode doesn't shrink automatically #100536

@Sauermann

Description

@Sauermann

Tested versions

v4.4.dev.custom_build [abf4796]

System information

Debian Linux X11

Issue description

GraphNode doesn't shrink automatically when

  • size_flags_vertical = SIZE_SHRINK_CENTER
  • the size of child Control nodes decreases

I would expect, that a container node with SIZE_SHRINK_CENTER automatically shrinks, when the size of their child nodes decreases.

Steps to reproduce

  1. Load and run MRP
  2. Drag the top HSlider to the right to increase the vertical size of the labels.
  3. Drag the top HSlider to the left to decrease the vertical size of the labels.

After 3:

  • The label inside the GraphNode became smaller, but the GraphNode didn't adjust its size and appears too big
  • For comparison there is a working example on the right side of the scene with a HBoxContainer, that adjusts its vertical size automatically (indicated by the red color)

Minimal reproduction project (MRP)

bug-graph-edit-resize.zip

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    Status

    For team assessment

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions