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 28, 2024
1 parent 99ea55d commit d0fab55
Showing 1 changed file with 3 additions and 1 deletion.
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 d0fab55

Please sign in to comment.