Skip to content

Commit

Permalink
fix: Right panel should not affect page padding when opened (cloese #860
Browse files Browse the repository at this point in the history
)
  • Loading branch information
cnouguier committed May 27, 2024
1 parent 15474a6 commit d61be6f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions core/client/components/layout/KPage.vue
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,6 @@ const contentStyleFunction = computed(() => {
return {
paddingTop: `${topPadding.value}px`,
paddingBottom: `${bottomPadding.value}px`,
paddingRight: `${rightPadding.value}px`,
widht: `calc(100vw - ${widthOffset}px)`,
height: `calc(100vh - ${heightOffset}px)`
}
Expand Down Expand Up @@ -261,7 +260,8 @@ watch(() => leftPane.visible, (visible) => {
// Functions
function layoutOffsetListener (offset) {
// Catch layout offset and returns default Quasar function
// Catch layout offset and returns default Quasar function. "offset" is a Number
// (pixels) that refers to the total height of header + footer that occupies on screen.
// see https://quasar.dev/layout/page#style-fn
layoutOffset.value = offset
return { minHeight: offset ? `calc(100vh - ${offset}px)` : '100vh' }
Expand Down

0 comments on commit d61be6f

Please sign in to comment.