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

    Getting the height of the horizontal q-splitter

    Help
    2
    3
    348
    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.
    • S
      studio511 last edited by

      I am using a q-splitter which splits my app horizontally.
      I wish to get the height of the splitter so that i can adjust the content sizing accordingly when i move the splitter up or down.
      Any ideas how to get the height of the splitter when i shift this splitter dynamically up or down?

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

        @studio511 should be able to check in the v-model you are using, also use unit prop. check the model api https://quasar.dev/vue-components/splitter#QSplitter-API

        1 Reply Last reply Reply Quote 0
        • S
          studio511 last edited by

          cool i used <q-resize-observer> eventually and it works nicely:
          <q-splitter …>
          …
          <template v-slot:after="" >
          <q-resize-observer @resize=“onResize” :debounce=“0” />
          …
          </template>
          </q-splitter>

          <script>
          …
          methods: {
          onResize ({ width, height }) {
          this.splitterheight = height
          console.log(‘get resize’, width, height)
          },
          }
          </script>

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