Skip to content
This repository has been archived by the owner on Oct 6, 2023. It is now read-only.

Commit

Permalink
fix: snapshot code not taking all available height
Browse files Browse the repository at this point in the history
  • Loading branch information
Akryum committed Feb 24, 2022
1 parent 198aa3e commit 0a2d723
Showing 1 changed file with 14 additions and 6 deletions.
20 changes: 14 additions & 6 deletions packages/peeky-client/src/features/BaseSplitPane.vue
Original file line number Diff line number Diff line change
Expand Up @@ -76,13 +76,21 @@ export default defineComponent({
}
})
const leftStyle = computed(() => ({
[props.orientation === 'landscape' ? 'width' : 'height']: `${props.disabled ? 50 : boundSplit.value}%`,
}))
const leftStyle = computed(() => (props.disabled
? {
flex: 'auto 1 1',
}
: {
[props.orientation === 'landscape' ? 'width' : 'height']: `${boundSplit.value}%`,
}))
const rightStyle = computed(() => ({
[props.orientation === 'landscape' ? 'width' : 'height']: `${props.disabled ? 50 : 100 - boundSplit.value}%`,
}))
const rightStyle = computed(() => (props.disabled
? {
display: 'none',
}
: {
[props.orientation === 'landscape' ? 'width' : 'height']: `${100 - boundSplit.value}%`,
}))
const dragging = ref(false)
let startPosition = 0
Expand Down

0 comments on commit 0a2d723

Please sign in to comment.