Skip to content
Snippets Groups Projects

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

  1. Apr 07, 2025
    • Fatih Uzunoğlu's avatar
      qml: create the scroll bar depending on the orientation in `ListViewExt` · e80f981c
      Fatih Uzunoğlu authored and Steve Lhomme's avatar Steve Lhomme committed
      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).
      e80f981c
Loading