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

    Odd scrolling behavior (Solved)

    Help
    3
    11
    243
    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.molinari
      s.molinari last edited by

      Any particular reason why you are using a layout within a layout?

      Scott

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

        @s-molinari

        I’ve based the above on an example I saw on the docs, so no - there is no specific reason apart from the fact that it looked like I wanted. What would be the proper way of making this work (left drawer - content - right drawer) ?

        Cheers,
        Michael

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

          You have all that in your outside layout. So, create your chat window on the page itself, without the inside layout.

          Scott

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

            @s-molinari

            I think I need a little more context. I’m still new on the web side of development and am probably making rookie mistakes…

            Removing the “inner” layout messes up the whole app:

            odd_scrolling_behavior2.png

            Chers,
            m.

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

              Would you be up to adding what you have to a codesandbox? https://codesandbox.quasar.dev

              Fork the sandbox and add your code.

              Scott

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

                Try to play with layout builder, must be a setting in view prop so scrolling wont tag along, tho eventually it will scroll along when youve scrolled at bottom end or top ends of your child component.

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

                  @s-molinari
                  All right, I’ve created a sandbox and uploaded the relevant files: https://codesandbox.io/s/codesandbox-app-c16tu

                  @metalsadman
                  I have been working with the layout builder, although I get the feeling its only usable to create layouts that are the “main layout” for the whole app. It does not seem to really show how to create a “child layout” like I need it in the “Chat” view.

                  The aim is as follows:
                  The main app should consist of the custom chrome, top toolbar and left drawer. Depending on what icon I click on the drawer, the ‘pane’ to the right is showing the appropriate content - whatever that may be: like the settings page with the given layout or the chat window.

                  Here’s a mockup:
                  nxclient_mockup.png

                  I am just completely lost on how to integrate all that together - I’m missing the best practices / approaches that are probably common in web dev.

                  Cheers,
                  m

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

                    another note: The scrolling in the sandbox does not behave like it does in my electron app (sigh). With electron - the text in the right drawer also scrolls along with the central content…

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

                      @mboeni it’s not odd really, the docs does the same. anyway you can use https://quasar.dev/vue-components/scroll-area#Introduction. https://38pvj.sse.codesandbox.io/ivechat, just do something with the css height etc… to get where you want it.

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

                        @metalsadman Yep, QScrollArea did the trick. Thanks for your help!

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