godotengine / godot Public
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
OptionButton expand_icon
breaks the layout
#59202
Comments
Hey! If possible I'd like to try and tackle this bug. This will be my first time trying to contribute to an open source, so I'm, excited to try it out. |
Sure, go ahead |
Hey! I have faced same bug earlier however the solution might be a bit tricky since the actual size of the |
This. Minimum size should properly use the final icon size. Right now it's probably ignored, like with most |
The oddity here is that the code is functionally identical between the master and 3.x branch outside of some function renames or refactors for the My trail currently has ended at trying to look at how the margins themselves get set, and looking into the diff of So I believe that any submission that only changes the way the minimum size is calculated is marked with a big TODO or FIXME because it is probable that such a fix may just mask a deeper bug that could pop up later down the development process. |
The issue does exist in master. As I said in my previous comment, the problematic part is this code: Lines 42 to 62 in 35eec4d
If expand_icon is true, this whole block is ignored, which is incorrect.
|
Hmm, I must be mistaken in my memory then, because I was sure that I tested a build of both master and 3.x and only saw the behavior on the 3.x branch. Not just that but neither 3.4 or 3.3 branches do an explicit calculation of the icon size when That is mostly why I believe that there is something deeper going on and made the comments that I did, as if it works as expected on those other branches but not 3.x or master, then something else has to be going on suggesting a deeper issue. EDIT: yeah, so I don't know how I convinced myself I tested both builds originally, but I definitely did not. Going to test the older branches too to see if those versions had this issue as well as it seems highly likely that they also exhibit the same issue |
Hello everyone, I think it may be caused by the following three reasons:
So, when enable the property |
…fect the width of the size. Fixes godotengine#59202
…fect the width of the size. Fixes godotengine#59202
Godot version
4.0 9d732aa / 3.x
System information
Windows 10 x64
Issue description
Text overlaps arrow
Steps to reproduce
expand_icon
propertyMinimal reproduction project
No response
The text was updated successfully, but these errors were encountered: