Skip to content

Commit

Permalink
Merge pull request #254 from alan-wu/contextual-popup-fix
Browse files Browse the repository at this point in the history
Make sure contextual information does not flip up.
  • Loading branch information
alan-wu authored Nov 5, 2024
2 parents 7da8cf3 + e959feb commit e35b138
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 5 deletions.
20 changes: 16 additions & 4 deletions src/components/ContentBar.vue
Original file line number Diff line number Diff line change
Expand Up @@ -149,10 +149,22 @@ export default {
},
popperOptions: function() {
return {
preventOverflow: {
enabled: true,
boundary: this.boundariesElement,
}
modifiers: [
{
name: 'preventOverflow',
options: {
boundary: this.boundariesElement,
}
},
{
name: 'flip',
options: {
boundary: this.boundariesElement,
flipVariations: false,
allowedAutoPlacements: ['bottom'],
}
},
]
}
},
entries: function() {
Expand Down
2 changes: 1 addition & 1 deletion src/components/ContentVuer.vue
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ export default {
this.$refs.viewer?.searchSuggestions(term, suggestions);
},
setPanesBoundary: function() {
this.$refs.contentBar?.setBoundary(this.$refs["container"][0]);
this.$refs.contentBar?.setBoundary(this.$refs["container"]);
},
speciesChanged: function (species) {
this.activeSpecies = species;
Expand Down

0 comments on commit e35b138

Please sign in to comment.