godot icon indicating copy to clipboard operation
godot copied to clipboard

Editor preview of the contents of a TabContainer is incorrect for every tab except the first one

Open Sslaxx opened this issue 2 years ago • 1 comments

Godot version

v4.0.stable.official [92bee43ad]

System information

Linux

Issue description

Creating a tabbed interface for options, the Y position for elements inside the Audio tab (second tab) appear to be incorrect in comparison to the Graphics tab (first tab).

Compare: 01-Graphics_tab_in_editor 02-Audio_tab_in_editor

That said, at runtime these appear to be in the correct positions.

Compare: 03-Graphics_tab_runtime 04-Audio_tab_runtime

Steps to reproduce

A minimum scene tree:

Control
    TabContainer
        Control
            Label
        Control
            Label

Where the labels have the same position according to Layout/Transform.

74653_demonstrator.zip should be a minimal reproduction.

Sslaxx avatar Mar 09 '23 11:03 Sslaxx

Yeah, and I'm pretty sure this was reported already, but I can't find it. So we can keep this one for now.

YuriSizov avatar Mar 09 '23 11:03 YuriSizov

Still happens in 4.1.1 stable . need to change current tab value to correct tab to trigger sort_children image

cenullum avatar Sep 13 '23 18:09 cenullum

The minimal project is empty. There are no scenes.

KoBeWi avatar Jan 19 '24 19:01 KoBeWi

Here is an MRP:

TabContainer_74653.zip

Steps:

  1. Open control.tscn.
  2. Use the toggle visibility button in the Scene dock to show the ColorRect or the TextureRect.
  3. The ColorRect doesn't show at all, and the TextureRect appears at the wrong position and scale.
  4. Use the TabContainer's current tab property in the Inspector to see what they should look like.
  5. After that, they will be correct when changing visibility, so close and reopen the scene to reproduce again.

kitbdev avatar Jan 27 '24 19:01 kitbdev