epam / ketcher

Web-based molecule sketcher
https://lifescience.opensource.epam.com/ketcher/demo.html
Apache License 2.0
442 stars 158 forks source link

Element labels are offset from elements when using `ketcher.setMolecule(molfile)` #1654

Open ericmuckley opened 2 years ago

ericmuckley commented 2 years ago

Steps to Reproduce

  1. Use ketcher.setMolecule(molfile) with a molfile string

Expected behavior The structure appears with atom labels next to the corresponding atoms.

Actual behavior The structure appears with atom labels vertically offset from the atoms. Once one of the atoms is moved, the labels re-adjust and the offset is fixed.

Desktop (please complete the following information):

https://user-images.githubusercontent.com/22535087/171460184-e37268e5-9d84-4d57-bfa3-e9c31653d369.mp4

Ketcher version v2.4.0.

AndreiMazol commented 2 years ago

Dear @ericmuckley ,

please attach original file to reproduce your issue locally.

Regards, Andrei

ericmuckley commented 2 years ago

ketcher.txt

When I read the text in this file as a string called molfile, and then use the command ketcher.setMolecule(molfile), the element labels appear offset from their actual locations.

AndreiMazol commented 2 years ago

Dear @ericmuckley ,

the issue is not reproducible on our environment. Could you check if it is reproduced after update to version 2.5.0?

ericmuckley commented 2 years ago

Hi Andrei, I just upgraded to version 2.5.0 and the issue is still happening.

The molecule is generated using ketcher.setMolecule(molfile) where molfile is the contents of the ketcher.txt file I attached above. Is there anything else I can try?

https://user-images.githubusercontent.com/22535087/173117255-87575609-7e64-4ba0-8b6a-b263752d3287.mov

ZaimBeshich1 commented 2 years ago

Dear @ericmuckley

We could not reproduce, even on exactly the same environment, this error, perhaps the problem is local

Maybe the problem will be fixed in the next versions of the catcher