munich-quantum-toolkit / munich-quantum-toolkit/ddvis
Line numbers do not follow horizontal scrolling
Nobody has claimed this yet.
- Dominant language
- JavaScript
- Stars
- 27
- Forks
- 4
- Avg merge
- 5h 19m
- Merged PRs (30d)
- 26
Description
Problem:
Line numbers are displayed in a separate element as the algorithm text. While vertical scrolling works perfectly fine (scrolling is synchronized), horizontal scrolling does not work and the line numbers overlap with the scrolled text.
Steps to reproduce the problem:
- Click the "Simulation" tab
- Load an algorithm with rather lengthy instructions such as "Grover (5 qubits)"
- Shrink the window/magnify the page until the algorithm text does no longer fit in the text box on at least one line.
- Scroll horizontally
Expected behavior:
The line numbers should also be synchronously scrolled horizontally and hence not overlap with the algorithm text.
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start in the Simulation tab and reproduce the issue with the Grover (5 qubits) algorithm after narrowing the window until horizontal scrolling appears. Inspect how the line-number element and algorithm text synchronize vertical scrolling; done means horizontal scrolling keeps the line numbers aligned without overlap.
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
- Clearly specified
- Newbie friendliness
- 45/100