racket / racket/gui

Windows `list-box%` scrolling stops

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

Nobody has claimed this yet.

Dominant language
Racket
Stars
68
Forks
82
PR merge metrics
No merged PRs in 30d

Description

On Windows a list-box% scrolling stops when the control attempts to make the Nth item the top item when there are N items visible. I've tracked it down to this line https://github.com/racket/gui/blob/master/gui-lib/mred/private/wx/win32/list-box.rkt#L414 . I'm not sure what the ramifications are for removing it, but I think that would fix it.

I found this when the Package Manager view in DrRacket had 24 items visible and with the default scroll size of 3, the list-box% would not scroll past the 21st item.

Cheers,
Sam

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 at gui-lib/mred/private/wx/win32/list-box.rkt:414 and reproduce the Windows list-box scrolling behavior described in the Package Manager view. Check the case where the number of visible items equals the target top item, including the default scroll size of 3. Done means list-box% can scroll past the 21st item in the reported 24-item view without breaking other scrolling behavior.

Written by the indexing model from the issue text.

Assessment

Domain
desktop
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
55/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.