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

Members who can merge are allowed to add commits.

Merge request pipeline #581413 passed

Merge request pipeline passed for 099bf06e

Test coverage 17.96% from 1 job
Approval is optional
Test summary results are loading
Merge blocked: 2 checks failed

Merge details

  • The source branch is 21 commits behind the target branch.
  • 1 commit will be added to master.
  • Source branch will be deleted.

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
Please register or sign in to reply
Loading