aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMohammad Amoush <mohammad_amoush@brown.edu>2019-07-18 18:08:07 -0400
committerMohammad Amoush <mohammad_amoush@brown.edu>2019-07-18 18:08:07 -0400
commit82a9c1f854fad05db0878717aa82572ffc1290c1 (patch)
tree8d6927d37aa1a3e71a161dbe0aea87ea9862d715 /src
parent421311806a686dd0de2bbdd7d8aa7dbb5c9fe9d5 (diff)
Update on coordinates
Diffstat (limited to 'src')
-rw-r--r--src/client/apis/youtube/YoutubeBox.tsx2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/client/apis/youtube/YoutubeBox.tsx b/src/client/apis/youtube/YoutubeBox.tsx
index 33d989b6a..da3c4b851 100644
--- a/src/client/apis/youtube/YoutubeBox.tsx
+++ b/src/client/apis/youtube/YoutubeBox.tsx
@@ -144,7 +144,7 @@ export class YoutubeBox extends React.Component<FieldViewProps> {
console.log("EmbeddedUrl: ", embeddedUrl);
this.selectedVideoUrl = embeddedUrl;
let addFunction = this.props.addDocument!;
- let newVideoX = NumCast(this.props.Document.x) + NumCast(this.props.Document.width);
+ let newVideoX = NumCast(this.props.Document.x);
let newVideoY = NumCast(this.props.Document.y) + NumCast(this.props.Document.height);
addFunction(Docs.Create.VideoDocument(embeddedUrl, { title: filteredTitle, width: 400, height: 315, x: newVideoX, y: newVideoY }));