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

rerevert grid cleanup #317

Merged
merged 2 commits into from
Dec 1, 2021
Merged

Conversation

mofojed
Copy link
Member

@mofojed mofojed commented Nov 26, 2021

…phaven#302)

- Convert part of grid to TypeScript 
- Add some JSDocs
Was screwing up the calculations still. Added a TODO ticket to clean it up and make it less confusing/prone to screwing up.
@mofojed mofojed added bug Something isn't working web-client-ui grid package/grid labels Nov 26, 2021
@mofojed mofojed self-assigned this Nov 26, 2021
@mofojed
Copy link
Member Author

mofojed commented Nov 26, 2021

@mattrunyon @spasovski It would be easiest to review this just by looking at the second change.

state,
firstColumn,
treePaddingX
);

// Calculate the metrics for the main grid
const visibleRows = Array.from(visibleRowHeights.keys());
Copy link
Member Author

Choose a reason for hiding this comment

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

The problem was the visibleRows map was including floatingRows which is wrong. I have a ticket to make things make more sense, but I figure making it make more sense is a breaking change so leaving it in another change is safest.

Copy link
Contributor

@spasovski spasovski left a comment

Choose a reason for hiding this comment

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

Looks good and fixes #307 and #308

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working grid package/grid web-client-ui
Projects
None yet
3 participants