From b3e2520f81a9956320b1aeba14ea880aa2887b15 Mon Sep 17 00:00:00 2001 From: bobzel Date: Thu, 21 Jan 2021 10:22:51 -0500 Subject: fixed fitWidth for WebBox --- src/mobile/ImageUpload.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/mobile') diff --git a/src/mobile/ImageUpload.tsx b/src/mobile/ImageUpload.tsx index 65f9e40ff..2183d2172 100644 --- a/src/mobile/ImageUpload.tsx +++ b/src/mobile/ImageUpload.tsx @@ -57,7 +57,7 @@ export class Uploader extends React.Component { doc = Docs.Create.VideoDocument(path, { _nativeWidth: defaultNativeImageDim, _width: 400, title: name }); // Case 2: File is a PDF document } else if (file.type === "application/pdf") { - doc = Docs.Create.PdfDocument(path, { _nativeWidth: defaultNativeImageDim, _width: 400, _fitWidth: true, title: name }); + doc = Docs.Create.PdfDocument(path, { _nativeWidth: defaultNativeImageDim, _width: 400, title: name }); // Case 3: File is another document type (most likely Image) } else { doc = Docs.Create.ImageDocument(path, { _nativeWidth: defaultNativeImageDim, _width: 400, title: name }); -- cgit v1.2.3-70-g09d2