Open gg4u opened 4 years ago
Because we have class scroll
const PanelWrapper = {
setup (_, { slots }) {
return () => h('div', {
class: 'q-panel scroll',
role: 'tabpanel'
}, hSlot(slots.default))
}
And
h('div', {
class: 'q-panel scroll',
style: transitionStyle.value,
key: contentKey.value,
role: 'tabpanel'
}, [ panel ])
]
in https://github.com/quasarframework/quasar/blob/dev/ui/src/composables/private/use-panel.js
Not sure if a bug or I am missing smtg from the Documentation.
I am organising content on a side panel on the right, the user can open and close it on mobile. I am using a q-drawer component.
In it, I am using tabs to and tabs panel to organise content.
The number of tabs can exceed the width of the drawer: the behaviour I want to achieve is that a user can:
see the picture
My layout uses the props I see: https://quasar.dev/layout/drawer#Introduction and the examples I see for https://quasar.dev/vue-components/tabs
However, I cannot get the scrolling behaviour on tabs to work: if I swipe, the qDrawer will be closed as well. Any way to prevent it and get the desidered behaviour to work ?
Please note that to find info on the qDrawer, I had to search in the documentation: I mean, there is no Drawer component nor 'Sidebar' listed in the Components sections differently than tabs, and it would be convenient to have it displayed on the main doc (without need to search for it).