Commit 571938cc by dosZhang

update canvas height

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