diff options
author | bobzel <zzzman@gmail.com> | 2024-08-29 13:59:00 -0400 |
---|---|---|
committer | bobzel <zzzman@gmail.com> | 2024-08-29 13:59:00 -0400 |
commit | b1692a7435ae9698eff618bef0e370fe3eb89572 (patch) | |
tree | 20664940b2774a4b0fffdecaafdd40bfd08c4251 /src/client/views/nodes/formattedText/FormattedTextBox.tsx | |
parent | 0ac79ba6a7ab19b4aafbc11dac9bab4781d4bd40 (diff) |
from last cleanup
Diffstat (limited to 'src/client/views/nodes/formattedText/FormattedTextBox.tsx')
-rw-r--r-- | src/client/views/nodes/formattedText/FormattedTextBox.tsx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/client/views/nodes/formattedText/FormattedTextBox.tsx b/src/client/views/nodes/formattedText/FormattedTextBox.tsx index 38b22fad2..996c6843e 100644 --- a/src/client/views/nodes/formattedText/FormattedTextBox.tsx +++ b/src/client/views/nodes/formattedText/FormattedTextBox.tsx @@ -265,11 +265,11 @@ export class FormattedTextBox extends ViewBoxAnnotatableComponent<FormattedTextB }); AnchorMenu.Instance.AddDrawingAnnotation = (drawing: Doc) => { - const container = DocCast(this._props.Document.embedContainer); + const container = DocCast(this.Document.embedContainer); const docView = DocumentView.getDocumentView?.(container); docView?.ComponentView?._props.addDocument?.(drawing); - drawing.x = NumCast(this._props.Document.x) + (this._props.Document.width as number); - drawing.y = NumCast(this._props.Document.y); + drawing.x = NumCast(this.Document.x) + (this.Document.width as number); + drawing.y = NumCast(this.Document.y); }; AnchorMenu.Instance.setSelectedText(window.getSelection()?.toString() ?? ''); |