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

Import textures dialog is so large it does not fit on screen and is unusable #423

Open
Pshy0 opened this issue Jan 16, 2024 · 3 comments
Open
Labels
bug Something isn't working

Comments

@Pshy0
Copy link

Pshy0 commented Jan 16, 2024

Describe the bug
The import texture dialog is so large I cannot access some options and buttons at the bottom.
The dialog cannot be resized because it is so large that the upper and lower bounds are unreachable.

To Reproduce
Undetermined

Expected behavior
This window should fit the screen, or, at least, the bottom and/or lower bound of the window should be reachable for resizing it.

Screenshots
This is a screenshot from the very top of my screen to the very bottom:
image

Environment

  • OS: Ubuntu 23.10
  • Godot version: 4.2.1
  • Plugin version: 1.7.2
@Zylann
Copy link
Owner

Zylann commented Jan 16, 2024

Wow, that's really weird, it's not supposed to be that tall. I've never seen it do that.

Also, I wonder why it's not an actual window Oo because the Godot editor should use native windows, not embedded ones. When I open this window, it shows up very tall, but at least it is a native window, so I can use it by clicking its border and resizing it. So unfortunately, it's going to be hard for me to understand why it's not using a native window on your computer.

I checked the scene res://addons/zylann.hterrain/tools/texture_editor/set_editor/texture_set_import_editor.tscn, and indeed for some reason the window was super tall. I haven't done that. I suppose Godot had a bug of some sort of behavior change when going up versions, and messed it up at some point...

image

I tried setting the height back to 623 like it was originally, saved it, but when I reopen it, Godot stretches it back super tall...

@Zylann
Copy link
Owner

Zylann commented Jan 16, 2024

After some fiddling about, I found a label had "autowrap" enabled: now in Godot 4.2 you must set a minimum size on it otherwise it messes things up. No idea why that wasn't a problem in the past. Changing that seems to fix the tall size.
This shows a small warning icon in the scene tree, but isn't mentionned anywhere in the docs apparently.

Related to godotengine/godot#83546

I pushed the fix in the plugin in 1b9c76b

@Zylann Zylann added the bug Something isn't working label Jan 16, 2024
@Calinou
Copy link
Contributor

Calinou commented Jan 16, 2024

godotengine/godot#86136 was recently resolved in master, so maybe the workaround won't be needed anymore in 4.3.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants