The first time I opened the Dock it had a height of 0. It looked like this:
It can still be resized to be taller, but it can also be shrunk to 0 pixels again. Apparently Godot doesn't like the root node being a Control, since it cannot tell what its height is.
2. How?
Make the (already existing) VBoxContainer the root node of the Dock scene. That way Godot knows what its current height is and it can be resized without issue.
This is how it goes with the smallest possible resolution Godot allows me to set:
The original note also had a script and some signals connecting to it. I also moved them, so now it's the VBoxContainer the one with the script and the signals connected.
3. Related Issue
n/a
4. Checklist:
[ ] My code follows the style guidelines of this project
[x] I have performed a self-review of my code
[ ] I have commented my code, particularly in hard-to-understand areas
[ ] I have made corresponding changes to the documentation
[x] My changes generate no new warnings
[ ] I have added tests that prove my fix is effective or that my feature works
[ ] New and existing unit tests pass locally with my changes
[ ] Any dependent changes have been merged and published in downstream modules
5. Tests made (if appropriate)
After making the change and reloading the editor, tested manually:
Resize Godot's window, stretching and squashing the window horizontally and vertically.
Resize the Dock, stretching and squashing it vertically.
Click the copy "Redirect URI" and check it's in the clipboard (it can be pasted with ctrl+v).
1. Why?
The first time I opened the Dock it had a height of 0. It looked like this:
It can still be resized to be taller, but it can also be shrunk to 0 pixels again. Apparently Godot doesn't like the root node being a Control, since it cannot tell what its height is.
2. How?
Make the (already existing) VBoxContainer the root node of the Dock scene. That way Godot knows what its current height is and it can be resized without issue.
This is how it goes with the smallest possible resolution Godot allows me to set:
The original note also had a script and some signals connecting to it. I also moved them, so now it's the VBoxContainer the one with the script and the signals connected.
3. Related Issue
n/a
4. Checklist:
5. Tests made (if appropriate)
After making the change and reloading the editor, tested manually:
6. Notes (if appropriate)
n/a