Skip to content

Commit

Permalink
#3017 - Using setMolecule with molfile does not rescale bond lengths
Browse files Browse the repository at this point in the history
- added molecules scaling in setMolecule and addFragment api methods.
  • Loading branch information
rrodionov91 committed Feb 20, 2024
1 parent 912855e commit a398821
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/ketcher-core/src/application/ketcher.ts
Original file line number Diff line number Diff line change
Expand Up @@ -321,6 +321,7 @@ export class Ketcher {
this,
);

struct.rescale();
this.#editor.struct(struct);
this.#editor.zoomAccordingContent(struct);
this.#editor.centerStruct();
Expand All @@ -341,6 +342,7 @@ export class Ketcher {
this,
);

struct.rescale();
this.#editor.structToAddFragment(struct);
}
}, this.eventBus);
Expand Down

0 comments on commit a398821

Please sign in to comment.