diff options
| author | mehekj <mehek.jethani@gmail.com> | 2022-04-13 00:11:55 -0400 |
|---|---|---|
| committer | mehekj <mehek.jethani@gmail.com> | 2022-04-13 00:11:55 -0400 |
| commit | 9a92361e9c585ed02c7d2561835d64ab736b96e3 (patch) | |
| tree | 622bc6bddab5a908ccd39d35a8c4a784f71c5c16 /src/client/views/InkTranscription.tsx | |
| parent | ab0e1ac6f5b21f2e10bdce428c882482a0f159b4 (diff) | |
fixed ink transcription document location
Diffstat (limited to 'src/client/views/InkTranscription.tsx')
| -rw-r--r-- | src/client/views/InkTranscription.tsx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/client/views/InkTranscription.tsx b/src/client/views/InkTranscription.tsx index 950f622dd..4957446dc 100644 --- a/src/client/views/InkTranscription.tsx +++ b/src/client/views/InkTranscription.tsx @@ -159,12 +159,12 @@ export class InkTranscription extends React.Component { const latex = exports['application/x-latex']; console.log(latex); - this.addDocument?.(Docs.Create.EquationDocument({ title: latex, x: this.bounds.width, y: 0, _width: this.bounds.width, _height: this.bounds.height })); + this.addDocument?.(Docs.Create.EquationDocument({ title: latex, x: this.bounds.x + this.bounds.width, y: this.bounds.y, _width: this.bounds.width, _height: this.bounds.height })); } else if (exports['text/plain']) { const text = exports['text/plain']; console.log(text); - this.addDocument?.(Docs.Create.TextDocument(text, { title: text, x: this.bounds.width, y: 0, _width: this.bounds.width, _height: this.bounds.height })); + this.addDocument?.(Docs.Create.TextDocument(text, { title: text, x: this.bounds.x + this.bounds.width, y: this.bounds.y, _width: this.bounds.width, _height: this.bounds.height })); } ref.editor.clear(); |
