diff --git a/bookmarklet.js b/bookmarklet.js index 7e6a198..fd60a84 100644 --- a/bookmarklet.js +++ b/bookmarklet.js @@ -85,9 +85,9 @@ jQuery("#hide-due-date-checkbox").attr('checked', readCookie("card_printer_hide_due_date", 'false') == 'true'); jQuery("#hide-status-checkbox").attr('checked', readCookie("card_printer_hide_status", 'true') == 'true'); - jQuery("#card-print-dialog-title").text("Card Printer - Loading issues..."); + jQuery("#card-print-dialog-title").text("Card Printer " + version + " - Loading issues..."); renderCards(issueKeyList, function() { - jQuery("#card-print-dialog-title").text("Card Printer"); + jQuery("#card-print-dialog-title").text("Card Printer " + version); //print(); }); @@ -322,14 +322,14 @@ // substract one pixel due to rounding problems var cardMaxWidth = Math.floor(jQuery(".card", printDocument).outerWidth() / columnCount); var cardMinWidth = jQuery(".card", printDocument).css("min-width").replace("px", ""); - var scaleWidth = cardMaxWidth / cardMinWidth; + var scaleWidth = cardMaxWidth / cardMinWidth - (columnCount * 0.02); // scale vertical // substract one pixel due to rounding problems // dont know why to multiply outer height with 2 var cardMaxHeight = Math.floor(jQuery(".card", printDocument).outerHeight() * 2 / rowCount); var cardMinHeight = jQuery(".card", printDocument).css("min-height").replace("px", ""); - var scaleHeight = cardMaxHeight / cardMinHeight; + var scaleHeight = cardMaxHeight / cardMinHeight - (rowCount * 0.02); // scale down var scale = Math.min(scaleWidth, scaleHeight, 1);