Commit 6ca58832 authored by liujiaxin's avatar liujiaxin

sdf

parent c9f73573
......@@ -170,6 +170,9 @@ export class PlayComponent implements OnInit, AfterViewInit, OnDestroy {
newone.classList.add('wrong');
this.animIng = false;
}
this.changeDetectorRef.markForCheck();
this.changeDetectorRef.detectChanges();
this.refresh();
}
showRightAnswer() {
const boxs = this.boxContainer.nativeElement.children; // .querySelectorAll('.gutter-row');
......@@ -188,6 +191,9 @@ export class PlayComponent implements OnInit, AfterViewInit, OnDestroy {
for (const el of els) {
this.boxContainer.nativeElement.appendChild(el);
}
this.changeDetectorRef.markForCheck();
this.changeDetectorRef.detectChanges();
this.refresh();
}
//
......@@ -244,6 +250,9 @@ export class PlayComponent implements OnInit, AfterViewInit, OnDestroy {
console.log('Item cchangehanges', itemWidth, itemHeight)
container.style.setProperty('--item-width', itemWidth + 'px')
container.style.setProperty('--item-height', itemHeight + 'px')
this.changeDetectorRef.markForCheck();
this.changeDetectorRef.detectChanges();
this.refresh();
}
// Element resize support
......
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