godotengine / godotengine/godot

Highlight outline jumps around on toggle visibility with flexible layout

Open
#97,709 0 comments 0 reactions 0 assignees View on GitHub
bug topic:gui
Dominant language
C++
Stars
117k
Forks
26.8k
PR merge metrics
PR metrics pending

Description

### Tested versions

Reproducible in 4.3-stable

### System information

Godot v4.3.stable - Pop!_OS 22.04 LTS - X11 - Vulkan (Forward+) - dedicated AMD Radeon RX 580 Series (RADV POLARIS10) - AMD Ryzen 7 7700X 8-Core Processor (16 Threads)

### Issue description

When toggling the visibility of items in a flex layout, in a way that adjusts the size of the enveloping container, the outlines of the items (initially) appear in the wrong place

### Steps to reproduce

Method A:
1. Adjust the 2D editor so the 4 Buttons are centered and big enough to see
2. shift+click all the buttons with text 'A'
3. In the Inspector, toggle CanvasItem>Visibility>visible twice

Method B:
1. Adjust the 2D editor so the 4 Buttons are centered and big enough to see
2. in the scene tree select all the buttons in the HBoxContainer
3. click the visibility icon twice

### Minimal reproduction project (MRP)

[MWE.zip](https://github.com/user-attachments/files/17215355/MWE.zip)

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.