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

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

Issue 8395006: Print Preview: Hiding header/footer options when 'no margins' is selected (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Resolving conflicts, rebasing Created 9 years, 1 month 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/margin_settings.js
diff --git a/chrome/browser/resources/print_preview/margin_settings.js b/chrome/browser/resources/print_preview/margin_settings.js
index 1bfed187a0a908c88905392414c3b1bfa14fe1cd..ff34310f6b9e4ae21e4ed6e63a1621ca83c38274 100644
--- a/chrome/browser/resources/print_preview/margin_settings.js
+++ b/chrome/browser/resources/print_preview/margin_settings.js
@@ -562,6 +562,10 @@ cr.define('print_preview', function() {
this.onDefaultMinimumNoMarginsSelected_();
else if (this.isCustomMarginsSelected())
this.onCustomMarginsSelected_();
+
+ var customEvent = cr.Event(customEvents.MARGINS_SELECTION_CHANGED);
+ customEvent.selectedMargins = this.selectedMarginsValue;
+ document.dispatchEvent(customEvent);
},
/**

Powered by Google App Engine
This is Rietveld 408576698