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

    Disable updatePosition method from Q-Menu

    Help
    2
    2
    385
    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.
    • A
      Azizbek last edited by

      Hi. I am going to create q-menu item with absolute position. By default it has ‘fixed’ position. The problem started to appear when I changed it to ‘absolute’.
      After changing element’s position, when I scroll page down, the q-menu element is changing it’s position because of updatePositon() method.
      You can watch it here:
      https://gfycat.com/gratefullimitedcutworm

      However, if I remove scroll event listener from Chrome Devtools everything is working as I expected.

      f22cc908-79d0-42bc-8951-75f8e42b4537-image.png

      Is it possible to remove or disable updatePosition method on scroll event?

      1 Reply Last reply Reply Quote 0
      • s.molinari
        s.molinari last edited by

        It sounds like either the component isn’t fitting your needs as is, or you are doing something unnecessarily complex with the component, which might be done with a simpler solution. From the looks of the video, you are just using QMenu as a navbar menu item. Corrrect? What is it not doing, which you’d like it to do?

        Scott

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