diff options
author | bob <bcz@cs.brown.edu> | 2019-05-13 16:21:28 -0400 |
---|---|---|
committer | bob <bcz@cs.brown.edu> | 2019-05-13 16:21:28 -0400 |
commit | 3be42131bc08024f06e0daec8d09e45bf3f1ddab (patch) | |
tree | 4ed0606fb7439f1b6c9f70b128f9e89f80ad5f4c /src/client/views/nodes/ImageBox.tsx | |
parent | 48b0f98ea2519d861a0eecee541dc0986a2c2f12 (diff) |
a bunch of fixes to schemas, marquees, and an experimental feature to set a document's data with linking UI
Diffstat (limited to 'src/client/views/nodes/ImageBox.tsx')
-rw-r--r-- | src/client/views/nodes/ImageBox.tsx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/client/views/nodes/ImageBox.tsx b/src/client/views/nodes/ImageBox.tsx index f9659a4b2..05742f8d1 100644 --- a/src/client/views/nodes/ImageBox.tsx +++ b/src/client/views/nodes/ImageBox.tsx @@ -42,8 +42,9 @@ export class ImageBox extends DocComponent<FieldViewProps, ImageDocument>(ImageD onLoad = (target: any) => { var h = this._imgRef.current!.naturalHeight; var w = this._imgRef.current!.naturalWidth; + console.log("title: " + this.Document.title); if (this._photoIndex === 0) { - this.Document.nativeHeight = FieldValue(this.Document.nativeWidth, 0) * h / w; + Doc.SetOnPrototype(this.Document, "nativeHeight", FieldValue(this.Document.nativeWidth, 0) * h / w); this.Document.height = FieldValue(this.Document.width, 0) * h / w; } } |