diff options
author | Mark Wells <mark@freeside.biz> | 2016-07-12 14:26:02 -0700 |
---|---|---|
committer | Mark Wells <mark@freeside.biz> | 2016-07-12 14:26:02 -0700 |
commit | 44d27f7842c32750ddf6210c83b949d5b440a6c5 (patch) | |
tree | c6629a85caaa7bfa82ee546a5fc0d09ba25b7665 /httemplate/elements/printtofit.js | |
parent | 169ad85b65ffdf5e925163bbefd6b1172ec56dd5 (diff) |
Revert "workaround for page-break-inside:avoid on Chrome, #71301"
This reverts commit 169ad85b65ffdf5e925163bbefd6b1172ec56dd5.
Diffstat (limited to 'httemplate/elements/printtofit.js')
-rw-r--r-- | httemplate/elements/printtofit.js | 17 |
1 files changed, 0 insertions, 17 deletions
diff --git a/httemplate/elements/printtofit.js b/httemplate/elements/printtofit.js index 98236026e..66257fca8 100644 --- a/httemplate/elements/printtofit.js +++ b/httemplate/elements/printtofit.js @@ -1,30 +1,13 @@ $().ready(function() { - // yuck - var isChrome = /Chrome/.test(navigator.userAgent) && /Google Inc/.test(navigator.vendor); var beforePrint = function() { if ($('body').width() > 0) { // 7.5 inches * 96 DPI; maybe make the width a user pref? var maxwidth = 7.5 * 96; $('body').css('zoom', maxwidth / $('body').width()); - if (isChrome) { - // Chrome doesn't respect page-break-* styles on table rows/cells, - // so wrap the contents of table cells with a block element - // ref. Chromium bug #99124, #87828, #59193 - // should be fixed with Chrome 53 - var nosplits = $('.nosplitrows td'); - if (nosplits.length > 0) { - nosplits.wrapInner('<div class="nosplit autowrap" />'); - } - } } }; var afterPrint = function() { $('body').css('zoom', 1); - // get the direct children of the wrapper divs. - var nosplits = $('div.autowrap >'); - if (nosplits.length > 0) { - nosplits.unwrap(); - } } if (window.matchMedia) { // chrome, most importantly; also IE10? |