Update bookmarklet.js

This commit is contained in:
Bengt Brodersen 2015-11-24 08:29:43 +01:00
parent c4c40002b9
commit 42ae3c7e5b

View File

@ -325,7 +325,7 @@
var style = document.createElement('style');
style.id = 'styleRowCount';
style.type = 'text/css';
style.innerHTML = ".card { height: calc( 100% / " + rowCount + " - 0.0001px ); }"
style.innerHTML = ".card { height: calc( 100% / " + rowCount + " - 0.0001px ); }"
jQuery("head", printDocument).append(style);
// scale
@ -348,6 +348,7 @@
// scale min
var scale = Math.min(scaleWidth, scaleHeight, 1);
if (scale < 1) {
console.log("scale: " + scale )
jQuery("html", printDocument).css("font-size", scale + "cm");
}
}