Godot version
4.0.stable
System information
Windows 11, Forward+, Nvidia 3060 (laptop)
Issue description
Don't know how to describe it better than the title. See screen capture:

Steps to reproduce
- Click on surface material override
- shader > new shader > create a visual shader
- Expand flags menu
- Click on any flag
Minimal reproduction project
ShaderMenuCollapse.zip
Godot version
4.0.stable
System information
Windows 11, Forward+, Nvidia 3060 (laptop)
Issue description
Don't know how to describe it better than the title. See screen capture:
Steps to reproduce
Minimal reproduction project
ShaderMenuCollapse.zip