Skip to content

Commit

Permalink
fix(module:steps): fix steps width bug in tab component (#94)
Browse files Browse the repository at this point in the history
close #83
  • Loading branch information
vthinkxie authored Aug 19, 2017
1 parent 2bcddc7 commit ee4428d
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions src/components/steps/nz-step.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -170,10 +170,12 @@ export class NzStepComponent implements OnInit, AfterViewInit, OnDestroy {

ngAfterViewInit() {
if (this._last) {
this.nzStepConnectService.lastElementSizeEvent.next({
count: this.erf.nativeElement.parentElement.childElementCount,
width: this.erf.nativeElement.firstElementChild.offsetWidth
});
setTimeout(_ => {
this.nzStepConnectService.lastElementSizeEvent.next({
count: this.erf.nativeElement.parentElement.childElementCount,
width: this.erf.nativeElement.firstElementChild.offsetWidth
});
})
}
}

Expand Down

0 comments on commit ee4428d

Please sign in to comment.