godotengine / godotengine/godot
Highlight outline jumps around on toggle visibility with flexible layout
- 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
Assessment
This issue has not been assessed yet.