diff options
author | Bob Zeleznik <zzzman@gmail.com> | 2019-06-07 21:05:20 -0400 |
---|---|---|
committer | Bob Zeleznik <zzzman@gmail.com> | 2019-06-07 21:05:20 -0400 |
commit | 7c32a4f51fd921a0a093bc285e22a5a617c4ad83 (patch) | |
tree | bd3d3f950c1a5c28cfd400a7bfb52529c2a0ea6b /src | |
parent | ecd6d50cf6dd89f7d860096037efee81230eb535 (diff) |
fixed initial image sizing
Diffstat (limited to 'src')
-rw-r--r-- | src/client/documents/Documents.ts | 2 |
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; |