Skip to content

Commit

Permalink
fix(module:affix): fix affix nzOffsetTop bug (#868)
Browse files Browse the repository at this point in the history
  • Loading branch information
vthinkxie committed Jan 6, 2018
1 parent 8d65a83 commit f0bad26
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/affix/nz-affix.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ export class NzAffixComponent implements OnChanges, OnInit, OnDestroy, AfterView
const wrapEl = this.wrap.nativeElement;
wrapEl.classList[ hasFixed ? 'add' : 'remove' ]('ant-affix');
if (hasFixed) {
wrapEl.style.cssText = `top:${this.nzOffsetTop + fixTop}px;left:${this.orgOffset.left}px`;
wrapEl.style.cssText = `top:${((+this.nzOffsetTop) + (+fixTop))}px;left:${this.orgOffset.left}px`;
} else {
wrapEl.style.cssText = ``;
}
Expand Down

0 comments on commit f0bad26

Please sign in to comment.