Skip to content

Commit

Permalink
fix(layout): partial revert of layout change
Browse files Browse the repository at this point in the history
use % instead of layoutSize
  • Loading branch information
johnleider committed Apr 11, 2024
1 parent 296a790 commit 9e85cff
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/vuetify/src/composables/layout.ts
Original file line number Diff line number Diff line change
Expand Up @@ -271,7 +271,7 @@ export function createLayout (props: { overlaps?: string[], fullHeight?: boolean
const styles = {
[position.value]: 0,
zIndex: zIndex.value,
transform: `translate${isHorizontal ? 'X' : 'Y'}(${(active.value ? 0 : -layoutSize.value) * (isOppositeHorizontal || isOppositeVertical ? -1 : 1)}px)`,
transform: `translate${isHorizontal ? 'X' : 'Y'}(${(active.value ? 0 : -105) * (isOppositeHorizontal || isOppositeVertical ? -1 : 1)}%)`,
position: absolute.value || rootZIndex.value !== ROOT_ZINDEX ? 'absolute' : 'fixed',
...(transitionsEnabled.value ? undefined : { transition: 'none' }),
} as const
Expand Down

0 comments on commit 9e85cff

Please sign in to comment.