mirror of
https://github.com/carloscuesta/gitmoji.git
synced 2025-12-08 20:14:12 +00:00
🐛 Fix pdf cheatsheet generation (#228)
This commit is contained in:
parent
7e65f64a7c
commit
178bf966e9
@ -51,7 +51,7 @@ function generatePDF() {
|
||||
for (var i = 0; i < emojiList.length; i++) {
|
||||
var emoji = emojiList[i];
|
||||
|
||||
var x = layout.leftMargin + Math.floor(i/layout.emojisHigh)*layout.secondMargin;
|
||||
var x = layout.leftMargin + Math.floor(i/layout.emojisHigh)%2*layout.secondMargin;
|
||||
var y = layout.topMargin+ layout.emojiSpace * (i%layout.emojisHigh);
|
||||
|
||||
if(Math.floor(i%(layout.emojisHigh*2))==0 && i!=0){
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user