Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(module:table): fix table fixed style when nzData change #4274

Merged
merged 1 commit into from
Oct 12, 2019
Merged

fix(module:table): fix table fixed style when nzData change #4274

merged 1 commit into from
Oct 12, 2019

Conversation

vthinkxie
Copy link
Member

close #4253

PR Checklist

Please check if your PR fulfills the following requirements:

PR Type

What kind of change does this PR introduce?

[ ] Bugfix
[ ] Feature
[ ] Code style update (formatting, local variables)
[ ] Refactoring (no functional changes, no api changes)
[ ] Build related changes
[ ] CI related changes
[ ] Documentation content changes
[ ] Application (the showcase website) / infrastructure changes
[ ] Other... Please describe:

What is the current behavior?

Issue Number: N/A

What is the new behavior?

Does this PR introduce a breaking change?

[ ] Yes
[ ] No

Other information

@netlify
Copy link

netlify bot commented Oct 11, 2019

Deploy preview for ng-zorro-master ready!

Built with commit 0ccba78

https://deploy-preview-4274--ng-zorro-master.netlify.com

@codecov
Copy link

codecov bot commented Oct 11, 2019

Codecov Report

Merging #4274 into master will decrease coverage by <.01%.
The diff coverage is 66.66%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #4274      +/-   ##
==========================================
- Coverage   92.18%   92.17%   -0.01%     
==========================================
  Files         520      520              
  Lines       10991    10994       +3     
  Branches     1990     1992       +2     
==========================================
+ Hits        10132    10134       +2     
  Misses        430      430              
- Partials      429      430       +1
Impacted Files Coverage Δ
components/table/nz-table.component.ts 91.48% <66.66%> (-0.54%) ⬇️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update cd8d0f5...0ccba78. Read the comment docs.

@@ -269,6 +271,11 @@ export class NzTableComponent<T = any> implements OnInit, AfterViewInit, OnDestr
this.fitScrollBar();
this.setScrollPositionClassName();
}
if (changes.nzData) {
if (this.platform.isBrowser) {
setTimeout(() => this.setScrollPositionClassName());
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This breaks the table for me for some reason:
image

8.3.0:
image

Ricbet pushed a commit to Ricbet/ng-zorro-antd that referenced this pull request Apr 9, 2020
hsuanxyz pushed a commit to hsuanxyz/ng-zorro-antd that referenced this pull request Aug 5, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

table 固定列的样式效果
3 participants