jspreadsheet / jspreadsheet/ce

tableWidth not working properly.

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

Hi,
Thank you for this awesome library!

I have one problem though when I try to style wrapper div of the table to take 20px margin, the table takes the margin only on the left side.

I tried to set "tableWidth" property to "97vw", it works but as soon as I try to resize the window the table width is broken.
Screenshot 2020-06-15 at 9 19 48 AM
Screenshot 2020-06-15 at 9 20 07 AM

Is there any workaround about this?

Thanks,
Ardit.

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 with a wrapper div using 20px margins and tableWidth set to 97vw, then resize the window to observe the broken width. Trace the tableWidth and resize-handling entry points in the JavaScript code. Done means the table keeps the intended wrapper margins and responsive width after resizing.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
frontend
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.