-
Notifications
You must be signed in to change notification settings - Fork 31
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
Conversation
mofojed
commented
Nov 26, 2021
- Convert GridMetricCalculator, GridRange, GridUtils to TypeScript (Convert GridMetricCalculator, GridRange, GridUtils to TypeScript #302)
- Fix the calculation for visibleRowHeights/visibleColumnWidths
…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.
@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()); |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.