| Index: chrome/browser/resources/pdf/pdf.js
|
| diff --git a/chrome/browser/resources/pdf/pdf.js b/chrome/browser/resources/pdf/pdf.js
|
| index dfa2d31dde07bfb508bd55551cb4e8d61b3acc0e..4b10b534e3fa4201f4a82749bc0db11da5f54375 100644
|
| --- a/chrome/browser/resources/pdf/pdf.js
|
| +++ b/chrome/browser/resources/pdf/pdf.js
|
| @@ -75,6 +75,12 @@ function shouldIgnoreKeyEvents(activeElement) {
|
| PDFViewer.MIN_TOOLBAR_OFFSET = 15;
|
|
|
| /**
|
| + * The height of the toolbar along the top of the page. The document will be
|
| + * shifted down by this much in the viewport.
|
| + */
|
| +PDFViewer.MATERIAL_TOOLBAR_HEIGHT = 64;
|
| +
|
| +/**
|
| * Creates a new PDFViewer. There should only be one of these objects per
|
| * document.
|
| * @constructor
|
| @@ -143,8 +149,12 @@ function PDFViewer(browserApi) {
|
| }
|
| this.plugin_.setAttribute('headers', headers);
|
|
|
| - if (this.isMaterial_)
|
| + if (this.isMaterial_) {
|
| this.plugin_.setAttribute('is-material', '');
|
| + this.plugin_.setAttribute('top-toolbar-height',
|
| + PDFViewer.MATERIAL_TOOLBAR_HEIGHT);
|
| + this.viewport_.topToolbarHeight = PDFViewer.MATERIAL_TOOLBAR_HEIGHT;
|
| + }
|
|
|
| if (!this.browserApi_.getStreamInfo().embedded)
|
| this.plugin_.setAttribute('full-frame', '');
|
|
|