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

Macro: Selected monomer does not appear above the others #3703

Closed
Zhirnoff opened this issue Dec 15, 2023 · 3 comments · Fixed by #3823
Closed

Macro: Selected monomer does not appear above the others #3703

Zhirnoff opened this issue Dec 15, 2023 · 3 comments · Fixed by #3823

Comments

@Zhirnoff
Copy link
Collaborator

Steps to Reproduce

  1. Switch to Macro mode
  2. Add multiple monomers on top of each other
  3. Choose monomer that is under the others

Actual behavior
Selected monomer does not appear above the others

Expected behavior
Selected monomer appear above the others

Screenshots

2023-12-15_12h15_51.mp4

Desktop (please complete the following information):**

  • OS: Windows 10
  • Browser Chrome
  • Version 112.0.5615.138 (Official Build) (64-bit)

Ketcher version
Version 2.17.0-rc.2

@Konstantin1996
Copy link
Collaborator

Konstantin1996 commented Dec 27, 2023

Hello, I tried to implement solution inside BaseMonomerRenderer.

I think we should use -> this.canvasWrapper.select('.rootElement').raise(); method. But we should trigger it only once.
Seems we need to call it during click and not inside BaseMonomerRenderer.ts.

Check draft PR here:
https://github.com/epam/ketcher/pull/3814/files

Here is the video how it works currently

example.mov

@Nitvex Nitvex self-assigned this Dec 29, 2023
Nitvex added a commit that referenced this issue Jan 2, 2024
Nitvex added a commit that referenced this issue Jan 4, 2024
* Macro: #3703 – Selected monomer does not appear above the others

* #3703 – fixed CI tests

* #3703 – added render complete notification
@Zhirnoff
Copy link
Collaborator Author

Zhirnoff commented Jan 4, 2024

Tests added to automation table.

@Zhirnoff
Copy link
Collaborator Author

Tested. No comments.

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

Successfully merging a pull request may close this issue.

6 participants