-
-
Notifications
You must be signed in to change notification settings - Fork 10.3k
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
Cannot reorder docking tab (focus/id conflict) #2363
Comments
I dunno if it is related to this very same issue but I found another tab of mine which, once docked, won't move or detach anymore. I suspect the two issues are related maybe? PS: I'd like to create a small test case for this, but it may be just much easier if you just recompile my editor and give it a go? the tab that wont undock is the 'log' tab :D |
I cannot take the first bug without more information (screenshot/repro). The second one we established your code was stealing the active widget every frame. |
Got a tab that was auto stealing focus and preventing from undocking. Thx Omar :D |
The issue persists after disabling all auto-focus code. static ImGuiTextFilter filter;
ImGui::PushStyleVar(ImGuiStyleVar_FramePadding, ImVec2(0,0));
filter.Draw("", -1); // <-- comment to fix issue
ImGui::PopStyleVar(); |
OK. So, by using an empty ID You should always use an ID for your element, e.g I have an ongoing task to make tabs use a different ID e.g. ("window_name" + "##TAB") to make this kind of error less problematic. Been also considering changing my mind on #1414 because even though there are legit use, people make this error of using empty ID too frequently. |
At some point one of my tabs went out of focus even if no other tab was overlapping at all. Couldnt give that bar any kind of focus with mouse. Fixed it by reordering layout of surronding tabs. Cannot give repro steps for this.
Originally posted by @r-lyeh in #2353 (comment)
The text was updated successfully, but these errors were encountered: