Commit 571938cc by dosZhang

update canvas height

parent 62f9fdf0
......@@ -222,9 +222,9 @@ function setShare() {
}
function initPage() {
const displacement = parseFloat(getTranslateDistance());
const wrapHeight = parseFloat($('.wrap').css('height'));
canvasHeight = wrapHeight - displacement;
// const displacement = parseFloat(getTranslateDistance());
// const wrapHeight = parseFloat($('.wrap').css('height'));
canvasHeight = 1238;
$('.upload-canvas-block,.poster-img,.show-img,.poster-canvas').css('height', wrapHeight + 'px').css('top', displacement < 0 ? -displacement : 0 + 'px');
if (-displacement + 179 > 243) {
......
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