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 #515, column header misalignment #517

Merged
merged 2 commits into from Nov 15, 2016
Merged

Fix #515, column header misalignment #517

merged 2 commits into from Nov 15, 2016

Conversation

supamanda
Copy link
Contributor

Description

Bug fix for #515

If the column width isn't specified, the ColumnMetrics will recalculate the width and the left position of each of the columns. Originally, the column header was only triggering an update if the column width was changed, but not if the left position was changed.

This PR has changed the HeaderCell's shouldComponentUpdate method to return true if the column's left property has changed, and I've set up tests to confirm the behaviour of the shouldComponentUpdate method.

Does this PR introduce a breaking change? (check one with "x")

[ ] Yes
[x ] No

@coveralls
Copy link

Coverage Status

Changes Unknown when pulling 1e71e83 on supamanda:ah-515-column-header-misaligned into * on adazzle:master*.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants