Print Preview: Update header/footer availability based on doc margins
Updating the custom margins setting will always result in a corresponding update to the document margins reported from the backend, so adjust header/footer availability based on these margins rather than the custom margins setting value. This prevents unnecessary extra calls to the observer, and fixes a bug where the custom margins setting being initially empty caused the header/footer checkbox to disappear. Bug: 1051810 Change-Id: I851947d3e6b102154910c401ead79aed1666f43e Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2063869Reviewed-by:Daniel Hosseinian <dhoss@chromium.org> Commit-Queue: Rebekah Potter <rbpotter@chromium.org> Cr-Commit-Position: refs/heads/master@{#742744}
Showing
Please register or sign in to comment