jspreadsheet / jspreadsheet/ce

Incorrect column resizing while multiple columns are selected

Open
#1,493 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

For example, I click on the heading of column A and drag the mouse to the heading of column C. After that, I am trying to resize a column in a non-selected area, for example by resizing column F to 200 pixels, and all the selected columns (A-C) and column F have changed their width by 200 pixels, which is an incorrect result. Fully selected columns should change their width in the same way, only if I try to resize the column inside the selected range. Also function onresizecolumn returning array of selected columns [a-c] instead of column f which was an aim of resizing. So my question is there any tips to fix this moment?

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

Reproduce the issue by selecting columns A-C, then resizing column F, and inspect the column-selection and resize handling around the onresizecolumn callback. The fix is complete when resizing outside the selected range changes only the targeted column and onresizecolumn reports column F rather than A-C.

Written by the indexing model from the issue text.

Assessment

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.