Odd scrolling behavior (Solved)
-
Any particular reason why you are using a layout within a layout?
Scott
-
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 -
You have all that in your outside layout. So, create your chat window on the page itself, without the inside layout.
Scott
-
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:
Chers,
m. -
Would you be up to adding what you have to a codesandbox? https://codesandbox.quasar.dev
Fork the sandbox and add your code.
Scott
-
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. -
@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:
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 -
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…
-
@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.
-
@metalsadman Yep, QScrollArea did the trick. Thanks for your help!