Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
Sslaxx opened this issue Mar 9, 2023 · 4 comments · Fixed by #87194
Milestone

Comments

@Sslaxx
Copy link

Sslaxx commented Mar 9, 2023

Godot version

v4.0.stable.official [92bee43]

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.

@YuriSizov YuriSizov added this to the 4.x milestone Mar 9, 2023
@YuriSizov YuriSizov changed the title Positioning of tab elements appears to be incorrect? Editor preview of the contents of a TabContainer is incorrect for every tab except the first one Mar 9, 2023
@YuriSizov
Copy link
Contributor

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

@cenullum
Copy link

cenullum commented Sep 13, 2023

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

@KoBeWi
Copy link
Member

KoBeWi commented Jan 19, 2024

The minimal project is empty. There are no scenes.

@kitbdev
Copy link
Contributor

kitbdev commented Jan 27, 2024

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

6 participants