Commit 33b2d93d authored by linzhiguo's avatar linzhiguo

# 选项重叠 | 表单自动换行| 干扰项BUG

parent aef0967a
......@@ -180,6 +180,7 @@
</div>
<div class="section-content">
<div style="flex-wrap:wrap; width: 800px;display: flex;" >
<div *ngFor="let choiceItem of data.options; let choiceIndex = index" style="width:220px; height:280px; border:1px solid #CCC; padding:5px; border-radius: 5px; margin: 0 10px;">
<div style="display: flex; ">
<div style="flex:2">
......@@ -230,6 +231,7 @@
</div>
</div>
</div>
</div>
<!-- <div class="card-item" style="padding: 0.5vw;" >
<button nz-button nzType="primary" class="add-btn" (click)="addOption(i)">
......
......@@ -85,7 +85,7 @@ cc.Class({
_kind.text = "";
_kind.pic = "";
_kind.audio = "";
if (!k_item.is_disturb){
if (k_item.is_disturb != true){
if (k_item.kind_type == "0"){
_kind.text = k_item.word||"";
}
......@@ -333,7 +333,9 @@ cc.Class({
// })
// .start();
this._xs[i%2] += selected.target._w;
selected.target.removeFromParent();
selected.target = null;
break;
......@@ -704,10 +706,10 @@ cc.Class({
for(let i = 0; i < area.childrenCount; i++){
let item = area.children[i];
item.x += speed;
if (item.x > this._frameSize.width + item._w/2){
this._xs[i%2] -= item._w/2;
//item.x = Math.min(-item._w/2, this._xs[i%2]);
item.x = -item._w/2;
if (item.x > this._frameSize.width + item._w){
this._xs[i%2] -= item._w;
item.x = Math.min(-item._w/2, this._xs[i%2]);
//item.x = -item._w/2;
}
}
},
......
......@@ -54,7 +54,7 @@ cc.Class({
this.word_node.active = type == 1;
this.word.node.active = type == 1;
this.word_finish.active = false;
this.node._w = [340, 410][type];
this.node._w = [345, 420][type];
this.resetWH();
this.changeBackground();
},
......
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