epam / ketcher

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

Macro: The scale of structures in "Select Attachment Points" Modal is too big #3923

Open olganaz opened 6 months ago

olganaz commented 6 months ago

Steps to Reproduce

  1. Open Ketcher Macromolecules
  2. Add Base 'nC6n8A' (6-Aminohexyl-8-aminoadenine) on canvas
  3. Add peptide monomer 'G' (Glycine) on canvas
  4. Drag the bond between two monomers "center-to-center"
  5. Click on the 'Expand' icon in "Select Attachment Points" Modal

Actual behavior Modal window is expanded. The structure of Glycine scaled up too much.

Expected behavior Modal window is expanded. The scale of structure in preview should not be larger than 100% (how it looks on canvas).

3580

Additional context The same behavior was also observed for CHEMS: SMPEG2, sDBL, SS3 and some other monomers with large structure Peptide monomer 'G' (Glycine) was taken as an example of monomer with small structure and two APs.

Screenshots image

Desktop (please complete the following information):

Ketcher version Version 2.18.0-rc.2 Build at 2024-01-17; 15:03:49

Zhirnoff commented 5 months ago

Test added to the automation table.

AlexeyGirin commented 3 months ago

Moved to Refined Backlog since no fix over 3 versions