Skip to content

Commit

Permalink
wip: Manage stickies through the Layout #934
Browse files Browse the repository at this point in the history
  • Loading branch information
cnouguier committed Aug 14, 2024
1 parent f5165d1 commit f8f127a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
4 changes: 1 addition & 3 deletions core/client/components/layout/KPage.vue
Original file line number Diff line number Diff line change
Expand Up @@ -282,9 +282,7 @@ function getStickyPosition (sticky) {
}
function getStickyOffset (sticky) {
if (sticky.position === 'center') {
const heightPageOffset = page.size[1] / 2
const heightSizeOffset = sticky.size ? sticky.size[1] / 2 : sticky.height ? sticky.height / 2 : 0
const heightOffset = heightPageOffset - heightSizeOffset
const heightOffset = page.size[1] / 2
if (sticky.offset) return [sticky.offset[0], sticky.offset[1] + heightOffset]
return [0, heightOffset]
}
Expand Down
2 changes: 1 addition & 1 deletion map/client/components/KPositionIndicator.vue
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ export default {
height: `${this.size}px`,
width: `${this.size}px`,
position: 'center',
size: [this.size, this.size],
offset: [0, -this.size/2],
style: 'pointer-events: none; background-color: #00000020; border-radius: 50%;'
}
kdkCoreUtils.bindContent(target, this.kActivity)
Expand Down

0 comments on commit f8f127a

Please sign in to comment.