Combo box bug when a text widget is focused #241

Closed
opened 2015-06-05 23:45:15 +00:00 by apessino · 3 comments
apessino commented 2015-06-05 23:45:15 +00:00 (Migrated from github.com)

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=

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 commented 2015-06-06 13:58:26 +00:00 (Migrated from github.com)

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

Thanks, looking into it. Curiously it seems like a rather old bug, never noticed it until now.
ocornut commented 2015-06-09 16:10:32 +00:00 (Migrated from github.com)

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

I made the simple fix. I will however rework Combo to use the new popup facility, it'll be more consistent.
apessino commented 2015-06-09 16:44:02 +00:00 (Migrated from github.com)

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/ocornut/imgui/issues/241#issuecomment-110417852.

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/ocornut/imgui/issues/241#issuecomment-110417852.
Sign in to join this conversation.
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
ocornut/imgui#241
No description provided.