Use top/left to position tooltips/popovers and remove BdMenuItems from global

This commit is contained in:
Samuel Elliott 2018-04-29 17:35:30 +01:00
parent ac79bbb99b
commit 3f2eb1047e
No known key found for this signature in database
GPG Key ID: 8420C7CDE43DC4D6
2 changed files with 15 additions and 3 deletions

View File

@ -31,8 +31,6 @@ let items = 0;
export const BdMenuItems = new class {
constructor() {
window.bdmenu = this;
this.items = [];
const updater = this.add({category: 'Updates', contentid: 'updater', text: 'Updates available!', hidden: true});

View File

@ -26,7 +26,21 @@ Vue.use(VTooltip, {
defaultWrapperClass: 'bd-popover-wrapper',
defaultInnerClass: 'bd-popover-inner',
defaultArrowClass: 'bd-popover-arrow',
defaultBoundariesElement: DOM.getElement('#app-mount')
defaultBoundariesElement: DOM.getElement('#app-mount'),
defaultPopperOptions: {
modifiers: {
computeStyle: {
gpuAcceleration: false
}
}
}
},
defaultPopperOptions: {
modifiers: {
computeStyle: {
gpuAcceleration: false
}
}
}
});