munich-quantum-toolkit / munich-quantum-toolkit/ddvis

Line numbers do not follow horizontal scrolling

Open
#2 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug
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

  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 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.