Skip to content

Commit

Permalink
fix(VNavigationDrawer): don't restrict elementSize when location is t…
Browse files Browse the repository at this point in the history
…op or bottom
  • Loading branch information
johnleider committed Apr 29, 2024
1 parent 99ea55d commit 1ee802d
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
Expand Up @@ -23,6 +23,11 @@
&--rounded
@include tools.rounded($navigation-drawer-rounded-border-radius)

&--top,
&--bottom
max-height: -webkit-fill-available
overflow-y: scroll

&--top
top: 0
border-bottom-width: $navigation-drawer-border-thin-width
Expand Down
Expand Up @@ -177,12 +177,13 @@ export const VNavigationDrawer = genericComponent<VNavigationDrawerSlots>()({

return isDragging.value ? size * dragProgress.value : size
})
const elementSize = computed(() => ['top', 'bottom'].includes(props.location) ? 0 : width.value)
const { layoutItemStyles, layoutItemScrimStyles, layoutIsReady } = useLayoutItem({
id: props.name,
order: computed(() => parseInt(props.order, 10)),
position: location,
layoutSize,
elementSize: width,
elementSize,
active: computed(() => isActive.value || isDragging.value),
disableTransitions: computed(() => isDragging.value),
absolute: computed(() =>
Expand Down Expand Up @@ -246,6 +247,7 @@ export const VNavigationDrawer = genericComponent<VNavigationDrawerSlots>()({
ssrBootStyles.value,
stickyStyles.value,
props.style,
['top', 'bottom'].includes(location.value) ? { height: 'auto' } : {},
]}
{ ...scopeId }
{ ...attrs }
Expand Down

0 comments on commit 1ee802d

Please sign in to comment.