jspreadsheet / jspreadsheet/ce

Mask seems broken on footer columns

Open
#1,574 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
JavaScript
Stars
7.2k
Forks
890
PR merge metrics
No merged PRs in 30d

Description

I've noticed that masks on footer columns seems to be broken due to an issue with this line:

https://github.com/jspreadsheet/ce/blob/fbcc95aaf18e96b831e0770717b05210be4a297c/dist/index.js#L9366

I'm not sure what the reason for this might be +obj.records.length in +obj.records.length + i but it will cause an issue further down when gettings the options for that column here:

https://github.com/jspreadsheet/ce/blob/fbcc95aaf18e96b831e0770717b05210be4a297c/dist/index.js#L7109

And will only get the right column when obj.records.length is 0.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reading dist/index.js at lines 9366 and 7109, then trace how footer-column masks determine the options for a column. Reproduce the issue with non-empty records and verify that each footer column receives its own mask options rather than an offset column.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
frontend
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
48/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.