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

[gui] Incorrect handling of expanding/collapsing tree nodes when a node is selected #1324

Closed
CmP-lt opened this issue Jan 3, 2022 · 2 comments

Comments

@CmP-lt
Copy link
Contributor

CmP-lt commented Jan 3, 2022

When there is a selection in the tree, expanding or collapsing any tree node causes the effect(s) of left click on selected node.

Steps to reproduce

  1. Click on any class node in the tree (for the node to become selected and editor tab to be opened).
  2. Close opened editor tab.
  3. Expand or collapse any node in the tree .

Expected behavior

  • Tree node gets expanded/collapsed, state of the editor doesn't get changed.

Observed behavior

  • Tree node gets expanded/collapsed, new editor tab for class that is selected in the tree gets opened.

The issue seems to be caused by the change to implementation of getJNodeUnderMouse method in 8271277 (or the fact that here it is called with trySelection parameter being true).

@skylot
Copy link
Owner

skylot commented Jan 13, 2022

@CmP-lt I commit a fix for this issue, please check 😃

@skylot skylot closed this as completed Jan 13, 2022
@CmP-lt
Copy link
Contributor Author

CmP-lt commented Jan 13, 2022

@skylot in latest nightly build expanding/collapsing tree nodes works as expected, thank you.

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