Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(4888)

Unified Diff: chrome/browser/resources/print_preview/preview_area.js

Issue 10083060: [Print Preview]: Added code to support pdf fit to page functionality. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: '' Created 8 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/browser/resources/print_preview/preview_area.js
diff --git a/chrome/browser/resources/print_preview/preview_area.js b/chrome/browser/resources/print_preview/preview_area.js
index e2e6a1e963bcbc3312b527446863ec0c68d0446e..ed5e92c69ea2cfdfdf28e7e1a82e8dbb9f0e4cfc 100644
--- a/chrome/browser/resources/print_preview/preview_area.js
+++ b/chrome/browser/resources/print_preview/preview_area.js
@@ -171,7 +171,7 @@ cr.define('print_preview', function() {
* Resets the state variables of |this|.
*/
resetState: function() {
- if (this.pdfPlugin_) {
+ if (this.pdfPlugin_ && previewModifiable) {
this.zoomLevel_ = this.pdfPlugin_.getZoomLevel();
this.pageOffset_ = {
x: this.pdfPlugin_.pageXOffset(),

Powered by Google App Engine
This is Rietveld 408576698