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

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

Issue 7891016: Print Preview: Adding UI for margin settings. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fixing causing a regeneration because of rounding error. Created 9 years, 2 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/print_header.js
diff --git a/chrome/browser/resources/print_preview/print_header.js b/chrome/browser/resources/print_preview/print_header.js
index fb95f97890ee60c2e2d69e4e5847f51fe0d663e6..662259e1c648e1c9c3bb97c9b2dc876e0b470962 100644
--- a/chrome/browser/resources/print_preview/print_header.js
+++ b/chrome/browser/resources/print_preview/print_header.js
@@ -88,6 +88,11 @@ cr.define('print_preview', function() {
return;
}
+ if (!marginSettings.areMarginSettingsValid()) {
+ this.summary_.innerHTML = '';
+ return;
+ }
+
var pageSet = pageSettings.selectedPagesSet;
var numOfSheets = pageSet.length;
var summaryLabel =

Powered by Google App Engine
This is Rietveld 408576698