aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorBob Zeleznik <zzzman@gmail.com>2019-06-07 21:05:20 -0400
committerBob Zeleznik <zzzman@gmail.com>2019-06-07 21:05:20 -0400
commit7c32a4f51fd921a0a093bc285e22a5a617c4ad83 (patch)
treebd3d3f950c1a5c28cfd400a7bfb52529c2a0ea6b /src
parentecd6d50cf6dd89f7d860096037efee81230eb535 (diff)
fixed initial image sizing
Diffstat (limited to 'src')
-rw-r--r--src/client/documents/Documents.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/client/documents/Documents.ts b/src/client/documents/Documents.ts
index 5f2d729cf..f0fb0c3ed 100644
--- a/src/client/documents/Documents.ts
+++ b/src/client/documents/Documents.ts
@@ -227,7 +227,7 @@ export namespace Docs {
inst.proto!.nativeWidth = size.width;
}
inst.proto!.nativeHeight = Number(inst.proto!.nativeWidth!) * aspect;
- inst.proto!.height = NumCast(inst.proto!.width) * aspect;
+ inst.height = NumCast(inst.width) * aspect;
})
.catch((err: any) => console.log(err));
return inst;