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

Combo box bug when a text widget is focused #241

Closed
apessino opened this issue Jun 5, 2015 · 3 comments
Closed

Combo box bug when a text widget is focused #241

apessino opened this issue Jun 5, 2015 · 3 comments

Comments

@apessino
Copy link

apessino commented Jun 5, 2015

There is an easy-to-repro problem selecting a combo box if any text input widget has the focus. If text input is active clicking on a combo box does not open it, rather it flashes for one frame and then closes again.

To reproduce:

  1. show the test window
  2. open the "widgets" header
  3. ctrl+click in any of the input fields so that you can enter text to set the value (any sort of text input being active in any widget type that supports it will cause the problem).
  4. now click on the combo box: what you get is a flash as the combo box is visualized and immediately hidden, to actually open it you have to click on it again.

Not the biggest bug in the world, but hopefully not difficult to fix either. :)

A=

@ocornut
Copy link
Owner

ocornut commented Jun 6, 2015

Thanks, looking into it. Curiously it seems like a rather old bug, never noticed it until now.

@ocornut
Copy link
Owner

ocornut commented Jun 9, 2015

I made the simple fix. I will however rework Combo to use the new popup facility, it'll be more consistent.

@apessino
Copy link
Author

apessino commented Jun 9, 2015

Cool – thanks! :)

From: omar [mailto:notifications@github.com]
Sent: Tuesday, June 09, 2015 9:11 AM
To: ocornut/imgui
Cc: Andrea Pessino
Subject: Re: [imgui] Combo box bug when a text widget is focused (#241)

I made the simple fix. I will however rework Combo to use the new popup facility, it'll be more consistent.


Reply to this email directly or view it on GitHubhttps://github.com//issues/241#issuecomment-110417852.

ocornut added a commit that referenced this issue Jun 9, 2015
@ocornut ocornut closed this as completed Jun 9, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants