I have copied one of the pre-defined layouts from https://vuetifyjs.com/layout/pre-defined.
However when the content of the main section overflows it cause a scroll to appear for the whole app, rather than a local scroll to the main section. Here is an example:
<template>
<v-app toolbar footer>
<v-toolbar class="blue darken-3" dark>
</v-toolbar>
<v-navigation-drawer permanent clipped light absolute>
</v-navigation-drawer>
<main>
<v-container>
<p>hi</p><p>hi</p><p>hi</p><p>hi</p><p>hi</p><p>hi</p><p>hi</p><p>hi</p><p>hi</p><p>hi</p><p>hi</p><p>hi</p><p>hi</p><p>hi</p><p>hi</p><p>hi</p><p>hi</p><p>hi</p><p>hi</p><p>hi</p><p>hi</p><p>hi</p><p>hi</p><p>hi</p><p>hi</p><p>hi</p><p>hi</p><p>hi</p><p>hi</p><p>hi</p><p>hi</p><p>hi</p><p>hi</p><p>hi</p><p>hi</p><p>hi</p><p>hi</p><p>hi</p><p>hi</p><p>hi</p><p>hi</p><p>hi</p><p>hi</p><p>hi</p><p>hi</p><p>hi</p>
</v-container>
</main>
</v-app>
</template>
I've tried adding class="scroll-y"
and style="max-height: 100%"
to various sections with no progress.
What do I need to specify for the scroll to only affect the main section?
This issue work for me, just adding
<style>
html { overflow-y: auto }
</style>
to your style file.
Full documentation hide scroll bar
I found this to work for the issue I was having:
html{
overflow-y: hidden;
}
You can put that in your App.vue file, or in the projects index.html target file
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With