Update bookmarklet.js
This commit is contained in:
parent
726bbac5a9
commit
eee9f9057e
@ -311,9 +311,9 @@
|
|||||||
var pageCount = Math.ceil(cardCount / (columnCount * rowCount))
|
var pageCount = Math.ceil(cardCount / (columnCount * rowCount))
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
// scale
|
// scale
|
||||||
|
|
||||||
|
// reset scale
|
||||||
jQuery("html", printDocument).css("font-size", "1cm");
|
jQuery("html", printDocument).css("font-size", "1cm");
|
||||||
jQuery("#styleColumnCount", printDocument).remove();
|
jQuery("#styleColumnCount", printDocument).remove();
|
||||||
jQuery("#styleRowCount", printDocument).remove();
|
jQuery("#styleRowCount", printDocument).remove();
|
||||||
@ -331,7 +331,7 @@
|
|||||||
var cardMinHeight = jQuery(".card", printDocument).css("min-height").replace("px", "");
|
var cardMinHeight = jQuery(".card", printDocument).css("min-height").replace("px", "");
|
||||||
var scaleHeight = cardMaxHeight / cardMinHeight;
|
var scaleHeight = cardMaxHeight / cardMinHeight;
|
||||||
|
|
||||||
// scale min
|
// scale down
|
||||||
var scale = Math.min(scaleWidth, scaleHeight, 1);
|
var scale = Math.min(scaleWidth, scaleHeight, 1);
|
||||||
if (scale < 1) {
|
if (scale < 1) {
|
||||||
jQuery("html", printDocument).css("font-size", scale + "cm");
|
jQuery("html", printDocument).css("font-size", scale + "cm");
|
||||||
@ -750,7 +750,7 @@ body {
|
|||||||
height: 100%;
|
height: 100%;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
padding: 0.5cm;
|
padding: 0.5cm;
|
||||||
min-width:14.0rem;
|
min-width:14.5rem;
|
||||||
min-height:10.0rem;
|
min-height:10.0rem;
|
||||||
border-color: LightGray;
|
border-color: LightGray;
|
||||||
border-style: dotted;
|
border-style: dotted;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user