diff options
| author | Sam Wilkins <35748010+samwilkins333@users.noreply.github.com> | 2019-07-11 18:45:57 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-07-11 18:45:57 -0400 |
| commit | aa17690d3c484e08b35cc6356c73f00eaa5e0df5 (patch) | |
| tree | 6039850b3ff1f463d8ac97ab0fe5a71deb2d6e82 /src/client/views/nodes/FormattedTextBox.tsx | |
| parent | aeb0521e8ad8f1efc8c3a39af9eb5443c5368453 (diff) | |
| parent | 5eb76c1a2da4e7c8371cb62c39ca84d2f79804d3 (diff) | |
Merge pull request #198 from browngraphicslab/layout_refactor
Layout refactor
Diffstat (limited to 'src/client/views/nodes/FormattedTextBox.tsx')
| -rw-r--r-- | src/client/views/nodes/FormattedTextBox.tsx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/client/views/nodes/FormattedTextBox.tsx b/src/client/views/nodes/FormattedTextBox.tsx index 084fd4c96..bc36074d2 100644 --- a/src/client/views/nodes/FormattedTextBox.tsx +++ b/src/client/views/nodes/FormattedTextBox.tsx @@ -317,7 +317,7 @@ export class FormattedTextBox extends DocComponent<(FieldViewProps & FormattedTe e.preventDefault(); } } else { - let webDoc = Docs.WebDocument(href, { x: NumCast(this.props.Document.x, 0) + NumCast(this.props.Document.width, 0), y: NumCast(this.props.Document.y) }); + let webDoc = Docs.Create.WebDocument(href, { x: NumCast(this.props.Document.x, 0) + NumCast(this.props.Document.width, 0), y: NumCast(this.props.Document.y) }); this.props.addDocument && this.props.addDocument(webDoc); this._linkClicked = webDoc[Id]; } |
