Commit 8c2147e6 authored by Luciano Pacheco's avatar Luciano Pacheco Committed by Commit Bot

Change PDF quick view to use FitH

Change quick view embedding pdfium with option view=FitH instead of Fit.

"FitH" fits to width which makes the PDF visualization to be fluid when
resizing the window (feature requested on crbug.com/809314) also it
doesn't cause pdfium to flick due to resizing the width and height as
happens with option "Fit".

See bug for a screen cast of PDF visualization with FitH.

Bug: 837591
Cq-Include-Trybots: master.tryserver.chromium.linux:closure_compilation
Change-Id: I242c92eea948ecc3378a02d404d2772ca4779e34
Reviewed-on: https://chromium-review.googlesource.com/1063518Reviewed-by: default avatarNaoki Fukino <fukino@chromium.org>
Commit-Queue: Luciano Pacheco (SYD) <lucmult@chromium.org>
Cr-Commit-Position: refs/heads/master@{#559457}
parent 148afd3d
......@@ -458,7 +458,7 @@ QuickViewController.prototype.getQuickViewParameters_ = function(
params.browsable = browsable;
params.contentUrl = browsable ? URL.createObjectURL(file) : '';
if (params.subtype == 'PDF')
params.contentUrl += '#view=Fit';
params.contentUrl += '#view=FitH';
return params;
}.bind(this))
.catch(function(e) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment