Commit 39de6fc8 by doszhang

dos

parent a6632d57
......@@ -504,7 +504,7 @@ function initCanvas(target, id, canvasWidth, canvasHeight, useRem = false) {
function getTranslateDistance(cardinal = 0, abs = false) {
let wrapHeight = parseFloat($('.wrap').css('height'));
let wrapInnerHeight = parseFloat($('.wrap-inner').css('height'));
return (wrapInnerHeight - wrapHeight) / 2 + cardinal + 'px';
return (wrapHeight - wrapInnerHeight) / 2 + cardinal + 'px';
}
//获取随机数方法
......
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