Can you wrap a full page with q-scroll-area? #15916
-
I need to have the scrollbar visible on desktop and mobile for my application as there are certain elements that don't respond to touch (by design). I was hoping I could simply wrap the entire page with a q-scroll-area that is always visible, however since you need specify a fixed height/width this seems impossible unless you manually calculate the heights of all elements on the page. Is there any other solution? |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 3 replies
-
one way is to use CSS Positioning Classes
|
Beta Was this translation helpful? Give feedback.
-
rough example https://codepen.io/metalsadman/pen/YzEoWNa |
Beta Was this translation helpful? Give feedback.
-
Is there a way for a component to take as much space as needed up to a specified height and then turn into a scroll-area? |
Beta Was this translation helpful? Give feedback.
-
This worked best for me: // MainLayout.vue
<q-layout>
<!-- q-header -->
<q-scroll-area style="width: 100vw; height: 100vh">
<div style="max-width: 100vw">
<q-page-container>
<router-view />
</q-page-container>
</div>
</q-scroll-area>
</q-layout> |
Beta Was this translation helpful? Give feedback.
rough example https://codepen.io/metalsadman/pen/YzEoWNa