diff options
author | geireann <60007097+geireann@users.noreply.github.com> | 2020-07-17 14:45:31 +0800 |
---|---|---|
committer | geireann <60007097+geireann@users.noreply.github.com> | 2020-07-17 14:45:31 +0800 |
commit | fc136d87a5c837c9863ca892c0595d3b35a32d18 (patch) | |
tree | b1d5c0ef8d2daee6bf35365827c19c2212401d12 /src/mobile/ImageUpload.tsx | |
parent | ae47181bab9bdaa104dc417c4493bc1a0e52eea1 (diff) | |
parent | 60819bced2eb67282b77e25c77939dd45d01e7d8 (diff) |
Merge branch 'master' into presentation_updates
Diffstat (limited to 'src/mobile/ImageUpload.tsx')
-rw-r--r-- | src/mobile/ImageUpload.tsx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mobile/ImageUpload.tsx b/src/mobile/ImageUpload.tsx index 5ea626d52..e13c91db9 100644 --- a/src/mobile/ImageUpload.tsx +++ b/src/mobile/ImageUpload.tsx @@ -55,7 +55,7 @@ export class Uploader extends React.Component<ImageUploadProps> { doc = Docs.Create.VideoDocument(path, { _nativeWidth: 400, _width: 400, title: name }); // Case 2: File is a PDF document } else if (file.type === "application/pdf") { - doc = Docs.Create.PdfDocument(path, { _nativeWidth: 400, _width: 400, title: name }); + doc = Docs.Create.PdfDocument(path, { _nativeWidth: 400, _width: 400, _fitWidth: true, title: name }); // Case 3: File is another document type (most likely Image) } else { doc = Docs.Create.ImageDocument(path, { _nativeWidth: 400, _width: 400, title: name }); |