diff options
author | bobzel <zzzman@gmail.com> | 2024-10-01 15:19:52 -0400 |
---|---|---|
committer | bobzel <zzzman@gmail.com> | 2024-10-01 15:19:52 -0400 |
commit | b56d2c2ae115e81fbf7aeaae0d2fed9ba073f11d (patch) | |
tree | 1473f081393b39bb2f2e241570a8e3b2739ca961 /src/client/views/nodes/formattedText/FormattedTextBox.tsx | |
parent | b4d9626be5dd3fc158fd05589b5deca59a08dd4f (diff) |
more annopalette related cleanup
Diffstat (limited to 'src/client/views/nodes/formattedText/FormattedTextBox.tsx')
-rw-r--r-- | src/client/views/nodes/formattedText/FormattedTextBox.tsx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/client/views/nodes/formattedText/FormattedTextBox.tsx b/src/client/views/nodes/formattedText/FormattedTextBox.tsx index 84d3fc748..d1b0dc7bf 100644 --- a/src/client/views/nodes/formattedText/FormattedTextBox.tsx +++ b/src/client/views/nodes/formattedText/FormattedTextBox.tsx @@ -268,7 +268,7 @@ export class FormattedTextBox extends ViewBoxAnnotatableComponent<FormattedTextB const container = DocCast(this.Document.embedContainer); const docView = DocumentView.getDocumentView?.(container); docView?.ComponentView?._props.addDocument?.(drawing); - drawing.x = NumCast(this.Document.x) + (this.Document.width as number); + drawing.x = NumCast(this.Document.x) + NumCast(this.Document.width); drawing.y = NumCast(this.Document.y); }; |