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

TableComboViewer dropdown not closed automatically on mouse click on the dialog area #499

Closed
ajaylamba-provar opened this issue Dec 17, 2022 · 13 comments
Assignees
Milestone

Comments

@ajaylamba-provar
Copy link

ajaylamba-provar commented Dec 17, 2022

Thr dropdown of TableCombo is not closed when clicking on empty space on the parent dialog.
The TableComboViewer uses TableCombo internally which handles the dropdown open and close action through org.eclipse.nebula.widgets.tablecombo.TableCombo.dropDown(boolean).

In the latest version 1.2.0 of tablecombo, the parent dialog remains activated when dropdown is opened. This in turn causes issues in closing the dropdown.

Note: The dropdown is closed when clicked on any control e.g. text, button etc. because of respective event trigger. It also gets closed when the parent dialog moves out of focus.

Versions:
org.eclipse.nebula.widgets.tablecombo - 1.2.0
org.eclipse.swt.win32.win32.x86_64 - 3.121.0
Eclipse version - 2022-09
JDK-11.0.16.9 (Amazon Corretto)
OS - Windows 10

@ajaylamba-provar ajaylamba-provar changed the title TableCombo dropdown not closed automatically on mouse click on the dialog area TableComboViewer dropdown not closed automatically on mouse click on the dialog area Dec 17, 2022
@ajaylamba-provar
Copy link
Author

One more thing I noticed is that when the dropDown is opened, the parent dialog box doesn't loose focus which means focusOut event is not triggered? While in older versions of eclipse/swt/nebula, the parent dialog is no more in focus and when we click again on the dialog, probably the focus event is triggered but not very sure about this.

@wimjongman
Copy link
Contributor

Hey Ajay. Thanks for the analysis. Can you make a patch and provide it through a pull request?

Please see the README on how to set up a development environment.

@ajaylamba-provar
Copy link
Author

ajaylamba-provar commented Dec 19, 2022

Hi @wimjongman, I think there is some misunderstanding here. I have not found the root cause yet. I have added my analysis just to help in understanding the issue.

@wimjongman
Copy link
Contributor

Ah, ok. It looks like you are very much qualified to contribute. Just give it a try.

@ajaylamba-provar
Copy link
Author

yes, I am trying to find the root cause. It's just that it is difficult to debug because of different events being triggered e.g. focusOut on moving the cursor to the debug window :D. Will give it another try and will add my analysis.

@wimjongman
Copy link
Contributor

Yes, that is tricky. Maybe add some tracing in the events?

@wimjongman
Copy link
Contributor

With tracing I mean some console printing.

@ajaylamba-provar
Copy link
Author

ajaylamba-provar commented Dec 29, 2022

This seems to be similar to the issue https://bugs.eclipse.org/bugs/show_bug.cgi?id=543226. @lcaron

And it is occurring due to the changes done in e2295dd.
@mpscholz @wimjongman

It is working fine if we revert the changes done in e2295dd

@ajaylamba-provar
Copy link
Author

@mpscholz could you please suggest?

@mpscholz
Copy link
Contributor

mpscholz commented Jan 9, 2023 via email

@mpscholz
Copy link
Contributor

mpscholz commented Jan 9, 2023 via email

@ajaylamba-provar
Copy link
Author

Thanks for your input @mpscholz.

@lcaron lcaron added this to the 3.1.0 milestone Mar 7, 2023
@lcaron lcaron self-assigned this Dec 23, 2023
@lcaron lcaron modified the milestones: 3.1.0, 3.1.1 Dec 26, 2023
lcaron added a commit that referenced this issue Jan 25, 2024
TableComboViewer dropdown not closed automatically on mouse click on the
dialog area => this bug is side effect of a Linux-only bug
lcaron added a commit that referenced this issue Jan 25, 2024
…r_dropdown_not_closed_automatically_on_mouse_click_on_the_dialog_area

Bug #499 - TableComboViewer dropdown not closed automatically
@lcaron
Copy link
Contributor

lcaron commented Jan 25, 2024

Bug fixed in Nebula 3.1.1

@lcaron lcaron closed this as completed Jan 25, 2024
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

4 participants