Commit a0f17ce7 by doszhang

dos

parent 79297b87
......@@ -340,23 +340,24 @@ function createPoster() {
}
let flagListHeight = $('.poster-page .poster-list').height();
let topHalfHeight = pxToRem(489);
let bottomHalfHeight = pxToRem(368);
flagListHeight = (flagListHeight / fontSize) * 20;
let topHalfHeight = 489;
let bottomHalfHeight = 368;
let posterCanvasHeight = 0;
// flagListHeight = flagListHeight * 2;
if (flagListHeight < pxToRem(383)) {
posterCanvasHeight = topHalfHeight + pxToRem(383) + bottomHalfHeight;
flagListHeight = pxToRem(383);
if (flagListHeight < 383) {
posterCanvasHeight = topHalfHeight + 383 + bottomHalfHeight;
flagListHeight = 383;
} else {
posterCanvasHeight = topHalfHeight;
posterCanvasHeight = topHalfHeight + flagListHeight + bottomHalfHeight;
}
console.log('flagListHeight:' + flagListHeight);
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];
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