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 for #998 #1001

Merged
merged 3 commits into from
May 8, 2018
Merged

fix for #998 #1001

merged 3 commits into from
May 8, 2018

Conversation

dcolens
Copy link
Contributor

@dcolens dcolens commented Feb 4, 2018

This is a fix + tests for issue #998. Note that this is a partial fix as it covers only rows, submitting it for review. It it looks good, I can try doing the same for columns :-)

@bvaughn
Copy link
Owner

bvaughn commented Feb 4, 2018

Scanned through super quickly (on my way to lunch). At a glance the fix looks reasonable! And I love the fact that there's a test.

The ternary within a boolean conditional looked strange but that's a nit.

If you'd be willing to do the fix for column too, please do!

@dcolens
Copy link
Contributor Author

dcolens commented Feb 5, 2018

i'm not a fan of the ternary + boolean too, an alternative is something like:

  this._recomputeScrollLeftFlag = scrollToColumn >= 0 
    ? (this.state.scrollDirectionHorizontal === SCROLL_DIRECTION_FORWARD 
      ? columnIndex <= scrollToColumn
      : columnIndex >= scrollToColumn)
    : false;

Let me know if you prefer the above snippet and I'll update the pull request!

@dcolens
Copy link
Contributor Author

dcolens commented Feb 14, 2018

Any chance this gets merged soonish ?

@dcolens
Copy link
Contributor Author

dcolens commented Feb 20, 2018

@bvaughn sorry to bug you, but I'd really like to get this one fixed, when do you think it can be merged ?

@jwickens
Copy link

WOW, this is so much better for my chat use case, thanks @dcolens. BTW when I published this to our private NPM to try it out I had to run yarn lint --fix because of some eslint issues.

@dcolens
Copy link
Contributor Author

dcolens commented Mar 9, 2018

weekend is coming !

time for a merge ?

@diogofcunha
Copy link
Contributor

Thanks for your contribution @dcolens, gonna carry out some testing on this an hopefully we can merge it very soon.

@wuweiweiwu
Copy link
Contributor

@dcolens This is currently blocked by #1053 which is a major rewrite of Grid.js We will try to merge ASAP as soon as thats done. :)

Copy link
Contributor

@wuweiweiwu wuweiweiwu left a comment

Choose a reason for hiding this comment

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

Looks nice! Thanks

@wuweiweiwu
Copy link
Contributor

@dcolens Do you mind putting the fix + tests and columns in this PR? That'll be amazing

@wuweiweiwu
Copy link
Contributor

Wait nevermind. Merging

@wuweiweiwu wuweiweiwu merged commit 6226f56 into bvaughn:master May 8, 2018
@bvaughn
Copy link
Owner

bvaughn commented May 8, 2018

Looks like this broke CI?

https://circleci.com/gh/bvaughn/react-virtualized/2102

wuweiweiwu added a commit that referenced this pull request May 8, 2018
This reverts commit 6226f56.
@wuweiweiwu wuweiweiwu mentioned this pull request May 8, 2018
wuweiweiwu added a commit that referenced this pull request May 8, 2018
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.

6 participants