-
-
Notifications
You must be signed in to change notification settings - Fork 138
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
Combo: combo widget in table is sized incorrectly #566
Labels
bug
Something isn't working
Comments
@gucio321 It's really strange. Combo's width even doesn't work when it's not in table. Might be a bug inside imgui. |
gucio321
added
the
External Issue
Issue in dependencies - can't make progress in giu yet.
label
May 9, 2023
@AllenDang I didn't test in tables but they work now in normal conditions perfectly in plain cimgui: ImVec2* size = new ImVec2(200, 80);
if (ImGui::Button("I'm 100 size", *size)) {}
int currentItem;
ImGui::PushItemWidth(200);
if (ImGui::Combo("##combo", ¤tItem, "item0i", 2)) {}
ImGui::PopItemWidth(); |
@gucio321 Seems it's a upstream issue and has been solved. |
ok, so I think this needs to wait for migration #628 |
gucio321
removed
the
External Issue
Issue in dependencies - can't make progress in giu yet.
label
May 10, 2023
Merged
69 tasks
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
What happend?
I'm putting ComboWidget inside the table cell. I've noticed that width of the widget is incorrect (much smaller than the column)
Calling
.Size(giu.Auto)
doesn't help (it did for InputText widget)Code example
main.go
To Reproduce
Version
master
OS
Fedora 36
The text was updated successfully, but these errors were encountered: