Skip to content

Commit

Permalink
Backmerge: #2446 – Structures are drawn outside the viewbox, when cha…
Browse files Browse the repository at this point in the history
…nging rendering options (#2448)
  • Loading branch information
Nitvex committed Apr 6, 2023
1 parent 3ea3c6b commit dd0ff64
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 1 addition & 1 deletion packages/ketcher-react/src/script/editor/Editor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -285,7 +285,7 @@ class Editor implements KetcherEditor {
this.render.clientArea,
Object.assign({ scale: SCALE }, value)
)
this.render.setMolecule(struct) // TODO: reuse this.struct here?
this.struct(struct)
this.render.setZoom(zoom)
this.render.update()
return this.render.options
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import { Vec2 } from 'ketcher-core'
import _ from 'lodash'

const edgeOffset = 150

Expand Down

0 comments on commit dd0ff64

Please sign in to comment.