Skip to content
This repository was archived by the owner on Apr 1, 2021. It is now read-only.

Commit c100a1d

Browse files
committed
dynamic notify position
1 parent b583949 commit c100a1d

File tree

1 file changed

+2
-1
lines changed
  • resources/assets/js/coreui/containers

1 file changed

+2
-1
lines changed

resources/assets/js/coreui/containers/Full.vue

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,8 @@ export default {
4848
methods: {
4949
setPosNotify () {
5050
const top = $(document).scrollTop()
51-
const offset = top < 55 ? 55 - top : 0
51+
const height = $('.app-header').height()
52+
const offset = top < height ? height - top : 0
5253
5354
this.offset = `${offset}px`
5455
},

0 commit comments

Comments
 (0)