Skip to content

Commit

Permalink
include data with gap for position
Browse files Browse the repository at this point in the history
  • Loading branch information
leiyre committed May 22, 2024
1 parent e9c0a4a commit df0c4bb
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ export default {
data() {
return {
topPosition: 0,
bottomGap: 24,
};
},
computed: {
Expand Down Expand Up @@ -79,7 +80,9 @@ export default {
this.$nextTick(() => {
const { bottom } = this.$refs.recordMetadataInfo.getBoundingClientRect();
this.topPosition =
bottom > window.innerHeight ? bottom - window.innerHeight + 24 : 0;
bottom > window.innerHeight
? bottom - window.innerHeight + this.bottomGap
: 0;
});
},
};
Expand Down

0 comments on commit df0c4bb

Please sign in to comment.