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

Node icon misplaced in Create New Scene dialog #88505

Closed
KoBeWi opened this issue Feb 18, 2024 · 3 comments · Fixed by #88615
Closed

Node icon misplaced in Create New Scene dialog #88505

KoBeWi opened this issue Feb 18, 2024 · 3 comments · Fixed by #88615

Comments

@KoBeWi
Copy link
Member

KoBeWi commented Feb 18, 2024

Tested versions

4.3 dev3
Does not happen in 4.2.1 (although there was different bug there)

System information

Windows 10.0.19045 - Vulkan (Forward+) - dedicated NVIDIA GeForce GTX 1060 (NVIDIA; 30.0.15.1403) - Intel(R) Core(TM) i7-7700HQ CPU @ 2.80GHz (8 Threads)

Issue description

image
Probably regression from some button icon PRs?

Previously it was aligned, but selection was broken:
image
It evolved I guess.

Steps to reproduce

  1. Right click FileSystem dock
  2. Create New
  3. Scene...

Minimal reproduction project (MRP)

N/A

@AegisTTN
Copy link

If I did the bisects correctly, sorry for any mistake new to this, it seems that f29a7d3 first changed it to:

Godot_Scene_Create_Dialogue

And then 567e76f changed it to what it currently is

@KoBeWi
Copy link
Member Author

KoBeWi commented Feb 20, 2024

CC @Rindbee

@Rindbee
Copy link
Contributor

Rindbee commented Feb 21, 2024

0

This is a question of whether h_separation needs to be added between icons when calculating the minimum size. Currently h_separation needs to be added only when the text is not empty.

if (get_text().length() > 0) {
minsize.width += MAX(0, theme_cache.h_separation);
}

if (get_text().length() > 0) {
minsize.width += MAX(0, theme_cache.h_separation);
}

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.

4 participants