Skip to content
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

ColorPicker popup immediately closes if spawned in separate viewport and clicked inside parent window #3969

Closed
Myszkoj opened this issue Mar 25, 2021 · 6 comments

Comments

@Myszkoj
Copy link

Myszkoj commented Mar 25, 2021

Hello :)

I use combination of imgui-tables and imgui-docking from 31.07.2020(VERSION 1.78 WIP (In Progress))
OS - Windows10, VisualStudio 2019 community

I noticed that if you open the color widget via ColorEdit4 (and maybe in any other way), as in a title of this issue, it will close unless you click outside the window that spawned it.

I managed to repreduce this "bug" in docking branch demo.
So if you click inside the red region, popup will immediately close without the option to interact with it in any way.
imgui_bug3_c
imgui_bug3_d

It looks that in order for this to happen, the color widget popup must be outside the main window(viewport).

I tested it with example_glfw_opengl3, but I have the same problem with sdl2.

@ocornut
Copy link
Owner

ocornut commented Mar 25, 2021

Am I doing something wrong here?

Yes, you didn't follow requested guidelines and issue template.
We cannot answer this without precise version number and backend used.
Please edit your post (don't create a new post) with the Issue Template shown in "New Issue" and reply here when edited.

Closing for now.

@ocornut ocornut closed this as completed Mar 25, 2021
@Myszkoj
Copy link
Author

Myszkoj commented Mar 25, 2021

Am I doing something wrong here?

Yes, you didn't follow requested guidelines and issue template.
We cannot answer this without precise version number and backend used.
Please edit your post (don't create a new post) with the Issue Template shown in "New Issue" and reply here when edited.

Closing for now.

Hope that helps :)

@ocornut ocornut reopened this Mar 25, 2021
@ocornut
Copy link
Owner

ocornut commented Mar 25, 2021

I believe a bug has been fixed in 1.81 and you should try to update:
https://github.com/ocornut/imgui/releases/tag/v1.81
See #3734

@Myszkoj
Copy link
Author

Myszkoj commented Mar 25, 2021

Oh, in that case, sorry for the problem and thx for the help :)

@Myszkoj Myszkoj closed this as completed Mar 25, 2021
@ocornut
Copy link
Owner

ocornut commented Mar 25, 2021

Assuming the fix works for you please confirm that it is indeed the same bug! (and not another) Thank you!

@Myszkoj
Copy link
Author

Myszkoj commented Mar 25, 2021

Assuming the fix works for you please confirm that it is indeed the same bug! (and not another) Thank you!

Confirmed, problem disappeared after updating to 1.81, thx again.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants