Commit a0f17ce7 by doszhang

dos

parent 79297b87
...@@ -340,23 +340,24 @@ function createPoster() { ...@@ -340,23 +340,24 @@ function createPoster() {
} }
let flagListHeight = $('.poster-page .poster-list').height(); let flagListHeight = $('.poster-page .poster-list').height();
let topHalfHeight = pxToRem(489); flagListHeight = (flagListHeight / fontSize) * 20;
let bottomHalfHeight = pxToRem(368); let topHalfHeight = 489;
let bottomHalfHeight = 368;
let posterCanvasHeight = 0; let posterCanvasHeight = 0;
// flagListHeight = flagListHeight * 2; // flagListHeight = flagListHeight * 2;
if (flagListHeight < pxToRem(383)) { if (flagListHeight < 383) {
posterCanvasHeight = topHalfHeight + pxToRem(383) + bottomHalfHeight; posterCanvasHeight = topHalfHeight + 383 + bottomHalfHeight;
flagListHeight = pxToRem(383); flagListHeight = 383;
} else { } else {
posterCanvasHeight = topHalfHeight; posterCanvasHeight = topHalfHeight + flagListHeight + bottomHalfHeight;
} }
console.log('flagListHeight:' + flagListHeight); console.log('flagListHeight:' + flagListHeight);
console.log('posterCanvasHeight:' + posterCanvasHeight); console.log('posterCanvasHeight:' + posterCanvasHeight);
let canvasinfo = initCanvas('.poster-canvas-block', 'posterCanvas', 640, 489, true); let canvasinfo = initCanvas('.poster-canvas-block', 'posterCanvas', 640, posterCanvasHeight, true);
posterCanvas = canvasinfo[0]; posterCanvas = canvasinfo[0];
posterCtx = canvasinfo[1]; posterCtx = canvasinfo[1];
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment