-
-
Notifications
You must be signed in to change notification settings - Fork 10.4k
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
SameLine issue/bug #1330
Comments
You cannot at the moment because the CollapsingHeader consume all the horizontal space.
What are you expecting to do? Where would you like the button to appear?
… On 20 Sep 2017, at 13:33, Izzy ***@***.***> wrote:
If I have SameLine right after CollapsingHeader like:
if (ImGui::CollapsingHeader("Header", ImGuiTreeNodeFlags_DefaultOpen )) {
ImGui::SameLine();if(ImGui::Button(UID(k,"Select"))) {}
}
I will have button inside the header, on which I cannot click.
I don't know if this is intended behavior or not (possibility to place buttons inside the collapsing header).
―
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or mute the thread.
|
It's not about expectation, that's a fact. I accidentally invoked behavior I reported. Button IS rendered inside the header. I just asked if buttons placement like that is intended or not. If it is not intended, then it is bug. If it is intended, then again it is bug, as I can't click on button. |
It's actually sort of intended and mimic the layout behavior of TreeNode(). SetItemAllowOverlap isn't a default properly because it adds a latency of one-frame on detecting Hovering of a given widget, but I expect to expose this as a global flag for people who'd codebase who's prefer this behavior. PS: Please use Github attachment system and not imgur for attachment, as they will delete them, making those threads less useful for future readers. |
Ok, if there is no needed change in the code, please close this issue. |
Cool, |
If I have SameLine right after CollapsingHeader like:
I will have button inside the header, on which I cannot click.
I don't know if this is intended behavior or not (possibility to place buttons inside the collapsing header).
The text was updated successfully, but these errors were encountered: