Commit 60506c8f authored by Chen Jiping's avatar Chen Jiping

fix:删除滚动设置

parent 01fc65fe
......@@ -102,14 +102,6 @@ export class FormComponent implements OnInit, OnChanges, OnDestroy {
item[key] = [...item[key], exercises];
this.save();
var ele = document.getElementById("content");
console.log(ele.scrollHeight, ele.clientHeight, ele.scrollTop)
//判断元素是否出现了滚动条
if(ele.scrollHeight > ele.clientHeight) {
//设置滚动条到最底部
ele.scrollTop = ele.scrollHeight;
}
}
deleteExercises(item, key, index) {
......
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