No More Posting New Topics!

If you have a question or an issue, please start a thread in our Github Discussions Forum.
This forum is closed for new threads/ topics.

Navigation

    Quasar Framework

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search

    q-scroll-area dosen't work for horizontal

    Framework
    2
    2
    281
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • Z
      zouyaoji last edited by

      It seems to be enhanced on v0.17.0. (https://github.com/quasarframework/quasar/issues/2163)
      But the document didnt update. (https://quasar-framework.org/components/scroll-area.html)
      Still not sure how to use it.
      Is all i need to do is add width on q-scroll-area tag?

      1 Reply Last reply Reply Quote 0
      • metalsadman
        metalsadman last edited by metalsadman

        @zouyaoji
        the thumb only exist for right and left, you can scroll horizontally if you override the css:

        .overflow-hidden {
          overflow-x: scroll !important;
          overflow-y: hidden !important;
        }
        

        you can listen for x and y scrolling using the v-scroll directive give it a handler like this v-scroll="scroll", then you can get the positions at methods scroll (y, x). I guess you can file a request for feature to add a thumb that can maybe shown on top or bottom of the scroll-area for a custom horizontal scrolling.

        1 Reply Last reply Reply Quote 0
        • First post
          Last post