From 8b718ba429f81585590dd618f5e1601e49d959f0 Mon Sep 17 00:00:00 2001 From: Bengt Brodersen Date: Tue, 24 Nov 2015 14:10:57 +0100 Subject: [PATCH 1/3] Update bookmarklet.js --- bookmarklet.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bookmarklet.js b/bookmarklet.js index 7e6a198..93b9c9a 100644 --- a/bookmarklet.js +++ b/bookmarklet.js @@ -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); From fde6a06b788fdb824b82b2548ebd7768a64cb779 Mon Sep 17 00:00:00 2001 From: Bengt Brodersen Date: Tue, 24 Nov 2015 17:52:46 +0100 Subject: [PATCH 2/3] Update bookmarklet.js --- bookmarklet.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bookmarklet.js b/bookmarklet.js index 93b9c9a..7c7b8d0 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(); }); From 2ee8f0be6f3042e7abe73a5df9ab4fcb30d329d6 Mon Sep 17 00:00:00 2001 From: Bengt Brodersen Date: Tue, 24 Nov 2015 17:53:34 +0100 Subject: [PATCH 3/3] Update bookmarklet.js --- bookmarklet.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bookmarklet.js b/bookmarklet.js index 7c7b8d0..fd60a84 100644 --- a/bookmarklet.js +++ b/bookmarklet.js @@ -87,7 +87,7 @@ jQuery("#card-print-dialog-title").text("Card Printer " + version + " - Loading issues..."); renderCards(issueKeyList, function() { - jQuery("#card-print-dialog-title").text("Card Printer" + version); + jQuery("#card-print-dialog-title").text("Card Printer " + version); //print(); });