Skip to content
Snippets Groups Projects

qml: create the scroll bar depending on the orientation in `ListViewExt`

By default we expect the viewport to cover the content width or height depending on the orientation, so in normal cases we only need one scroll bar. This behavior can obviously be overridden where the list view is reused.

This fixes multiple things:

  • Not being able to interact with the bottom part of the list view even if the orientation is vertical and the viewport covers the whole content width, because the scroll bar may still be technically visible and consume events even though it does not display anything visually.
  • Flashing scroll bar upon creation of the view until the content and viewport sizes are determined (regarding the orientation where scroll bar is not wanted).

Request review @chub.

Merge request reports

Merge request pipeline #584779 passed

Merge request pipeline passed for e80f981c

Test coverage 17.95% (-0.03%) from 1 job

Merged by Steve LhommeSteve Lhomme 3 days ago (Apr 7, 2025 4:23pm UTC)

Loading

Pipeline #584783 passed with warnings

Pipeline passed with warnings for e80f981c on master

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
Please register or sign in to reply
Loading