Skip to content

Scrollbar thumbs are much larger than they should be when they would be smaller than their minimum size of 20 px. #2898

@LeeSpork

Description

@LeeSpork

Version information

  • 25.01
  • Issue started happening between v23.08.1 (3d3b48e on master) and v23.09 (b6dd5cd on master)

Describe the bug
When resizing a window with a long scrollable list, the scrollbar thumb jumps in size at a certain point – when the window goes bellow a certain height, the scroll thumb suddenly becomes larger. The point at which this happens seems to depend on the size of the scrollable list.

To Reproduce

  1. Open a window with a scrollable list that has a good number of items. For example: the Industries window after starting a Great Britain & Ireland scenario.
  2. Click and drag the bottom-right of the window to resize it.

Expected behaviour
The scrollbar thumb shouldn't jump in size. I believe it should either:

  1. Continue shrinking with no discontinuities until it is so small that you cannot see it, like in original (Steam).
  2. Or, it should reach a minimum size and stay at that size, without jumping in size.

Screenshots Video
https://github.com/user-attachments/assets/8edbbb55-b595-4b90-9628-8ee72ae61560

Additional context
Issue does not occur in original Locomotion (Steam). Instead, the scroll thumb just became unusably tiny.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions