Commit 483860a2 authored by Chen Jiping's avatar Chen Jiping

修复显示问题

parent 1351afb0
...@@ -739,6 +739,8 @@ export class PlayComponent implements OnInit, OnDestroy { ...@@ -739,6 +739,8 @@ export class PlayComponent implements OnInit, OnDestroy {
startYArr.push(startY); startYArr.push(startY);
let hight = 0;
for (let i = 0; i < this.data.exercisesArr.length; ++i) { for (let i = 0; i < this.data.exercisesArr.length; ++i) {
let index = i + 1; let index = i + 1;
...@@ -780,7 +782,7 @@ export class PlayComponent implements OnInit, OnDestroy { ...@@ -780,7 +782,7 @@ export class PlayComponent implements OnInit, OnDestroy {
else { else {
startY = startY + exercises.bg.height + 65 * this.mapScaleY; startY = startY + exercises.bg.height + 65 * this.mapScaleY;
} }
hight = exercises.bg.height;
startYArr.push(startY); startYArr.push(startY);
} }
...@@ -793,6 +795,7 @@ export class PlayComponent implements OnInit, OnDestroy { ...@@ -793,6 +795,7 @@ export class PlayComponent implements OnInit, OnDestroy {
for(let i = 0; i < lBgArr.length; ++ i){ for(let i = 0; i < lBgArr.length; ++ i){
lBgArr[i].y = startYArr[i]; lBgArr[i].y = startYArr[i];
lBgArr[i].height = hight ;
} }
let minScale = 1; let minScale = 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 to comment