Skip to content
This repository was archived by the owner on Jan 13, 2022. It is now read-only.

Conversation

@u9520107
Copy link
Contributor

maximum top position of the scroll face should be {size - faceSize}.
max scroll position of the table = maxPosition = contentSize - size.
So the scale should be calculated as {(size-faceSize)/(contentSize - size)}, where faceSize = FACE_SIZE_MIN in this case.

…inimum face

size, the recalculated scale is wrong.
@ehzhang
Copy link
Contributor

ehzhang commented Jul 23, 2015

Thanks for the pull request! I'll do some testing on this first, but it looks pretty good :)

ehzhang added a commit that referenced this pull request Aug 11, 2015
When faceSize < FACE_SIZE_MIN, scale calculation is off
@ehzhang ehzhang merged commit 1c183ba into facebookarchive:master Aug 11, 2015
@ehzhang
Copy link
Contributor

ehzhang commented Aug 11, 2015

Looks great! This will be a part of the next minor version release.

sepo-one pushed a commit to One-com/fixed-data-table that referenced this pull request Sep 3, 2017
* Create copy of state "collapsedRows" before manipulating
Create copy of state "collapsedRows" before manipulating

"Treat this.state as if it were immutable." from https://facebook.github.io/react/docs/react-component.html (bottom of page).
The CollapseCell render was not being re-rendered unless recycled. E.G. ►  was not changing to ▼
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants